From 0b0ebc1745347bd9b1964b0f37a0fe00655ee422 Mon Sep 17 00:00:00 2001 From: Nebbie Zebbie Date: Thu, 20 Feb 2020 19:17:50 +0000 Subject: [PATCH] Preserve query in user search --- lib/philomena_web/templates/admin/user/index.html.slime | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/philomena_web/templates/admin/user/index.html.slime b/lib/philomena_web/templates/admin/user/index.html.slime index dab444dc..71402ec5 100644 --- a/lib/philomena_web/templates/admin/user/index.html.slime +++ b/lib/philomena_web/templates/admin/user/index.html.slime @@ -10,7 +10,7 @@ h1 Users => link "2FA users", to: Routes.admin_user_path(@conn, :index, twofactor: 1) - route = fn p -> Routes.admin_user_path(@conn, :index, p) end -- pagination = render PhilomenaWeb.PaginationView, "_pagination.html", page: @users, route: route, conn: @conn +- pagination = render PhilomenaWeb.PaginationView, "_pagination.html", page: @users, route: route, conn: @conn, params: [q: @conn.params["q"]] .block .block__header