fixes #133, preserve gallery search params across pagination

This commit is contained in:
byte[] 2020-06-16 13:03:58 -04:00
parent c885d1dd6b
commit fac13fcf92
2 changed files with 2 additions and 2 deletions

View file

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

View file

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