From 2c9b27aee028a9e3bc39582f521ed95ca7f3d630 Mon Sep 17 00:00:00 2001 From: "byte[]" Date: Mon, 10 Feb 2020 22:41:41 -0500 Subject: [PATCH] prepopulate tq on tags pagination --- lib/philomena_web/templates/tag/index.html.slime | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/philomena_web/templates/tag/index.html.slime b/lib/philomena_web/templates/tag/index.html.slime index 9999ad3c..e77f1c46 100644 --- a/lib/philomena_web/templates/tag/index.html.slime +++ b/lib/philomena_web/templates/tag/index.html.slime @@ -16,7 +16,7 @@ h2 Search Results = cond do - Enum.any?(@tags) -> - route = fn p -> Routes.tag_path(@conn, :index, p) end - - pagination = render PhilomenaWeb.PaginationView, "_pagination.html", page: @tags, route: route, params: [tq: @conn.params["tq"]] + - pagination = render PhilomenaWeb.PaginationView, "_pagination.html", page: @tags, route: route, params: [tq: @conn.params["tq"] || "*"] = render PhilomenaWeb.TagView, "_tag_list.html", tags: @tags, conn: @conn