mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-27 13:47:58 +01:00
fixes #133, preserve gallery search params across pagination
This commit is contained in:
parent
c885d1dd6b
commit
fac13fcf92
2 changed files with 2 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
|||
elixir:
|
||||
route = fn p -> Routes.gallery_path(@conn, :index, p) end
|
||||
pagination = render PhilomenaWeb.PaginationView, "_pagination.html", page: @galleries, route: route
|
||||
pagination = render PhilomenaWeb.PaginationView, "_pagination.html", page: @galleries, route: route, params: [gallery: @conn.params["gallery"]]
|
||||
|
||||
.column-layout
|
||||
.column-layout__left
|
||||
|
|
|
@ -24,4 +24,4 @@
|
|||
|
||||
= if not last_page?(@page) do
|
||||
= link("Next ›", to: next_page_path(@page, @route, params), class: "js-next")
|
||||
= link("Last »", to: last_page_path(@page, @route, params))
|
||||
= link("Last »", to: last_page_path(@page, @route, params))
|
||||
|
|
Loading…
Reference in a new issue