lib/lipstick/helpers/pagination_link_renderer.rb in aaf-lipstick-3.0.6 vs lib/lipstick/helpers/pagination_link_renderer.rb in aaf-lipstick-3.1.0
- old
+ new
@@ -119,10 +119,11 @@
def link_to_page(content, page:, **opts)
li_opts = {}
li_opts[:class] = 'active' if page == current
- url_opts = template.params.permit(:page, :per_page).merge(page: page)
+ url_opts = template.params.permit(:page, :per_page, :filter, :direction)
+ .merge(page: page)
opts = opts.merge(href: template.url_for(url_opts))
template.content_tag('li', li_opts) do
template.content_tag('a', content, opts)
end