Fix tag search so that it's preserved across pages

This commit is contained in:
Nebbie Zebbie 2019-12-31 01:23:04 +00:00
parent 45048d5015
commit 5ee81ea85e

View file

@ -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
- 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