mirror of
https://github.com/philomena-dev/philomena.git
synced 2025-02-07 23:06:42 +01:00
Fix tag search so that it's preserved across pages
This commit is contained in:
parent
45048d5015
commit
5ee81ea85e
1 changed files with 1 additions and 1 deletions
|
@ -16,7 +16,7 @@ h2 Search Results
|
||||||
= cond do
|
= cond do
|
||||||
- Enum.any?(@tags) ->
|
- Enum.any?(@tags) ->
|
||||||
- route = fn p -> Routes.tag_path(@conn, :index, p) end
|
- 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
|
= render PhilomenaWeb.TagView, "_tag_list.html", tags: @tags, conn: @conn
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue