Skip to content

Commit

Permalink
[GEM] Fix the '#pagy_url_for' method for calendar pagination (#688)
Browse files Browse the repository at this point in the history
  • Loading branch information
PyrinAndrii committed Apr 15, 2024
1 parent 503f344 commit 56cb7f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gem/lib/pagy/url_helpers.rb
Expand Up @@ -8,7 +8,7 @@ module UrlHelpers
# For non-rack environments you can use the standalone extra
def pagy_url_for(pagy, page, absolute: false, **_)
vars = pagy.vars
query_params = request.GET
query_params = request.GET.clone
query_params.merge!(vars[:params].transform_keys(&:to_s)) if vars[:params].is_a?(Hash)
pagy_set_query_params(page, vars, query_params)
query_params = vars[:params].(query_params) if vars[:params].is_a?(Proc)
Expand Down

0 comments on commit 56cb7f7

Please sign in to comment.