mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-23 12:08:00 +01:00
prepopulate tq on tags pagination
This commit is contained in:
parent
9202d59ce9
commit
2c9b27aee0
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue