diff --git a/gem/lib/pagy/frontend.rb b/gem/lib/pagy/frontend.rb index de20a8cc0..495bdff0a 100644 --- a/gem/lib/pagy/frontend.rb +++ b/gem/lib/pagy/frontend.rb @@ -46,9 +46,9 @@ def pagy_info(pagy, id: nil, item_name: nil) end # Generic pagination: it returns the html with the series of links to the pages - def pagy_nav(pagy, id: nil, aria_label: nil, anchor_string: nil, **vars) + def pagy_nav(pagy, id: nil, aria_label: nil, **vars) id = %( id="#{id}") if id - a = pagy_anchor(pagy, anchor_string:) + a = pagy_anchor(pagy, **vars) html = %(#{ prev_a(pagy, a)})