diff --git a/app/components/blacklight/facet_field_pagination_component.html.erb b/app/components/blacklight/facet_field_pagination_component.html.erb index bab71c93f..7d9e658b1 100644 --- a/app/components/blacklight/facet_field_pagination_component.html.erb +++ b/app/components/blacklight/facet_field_pagination_component.html.erb @@ -34,7 +34,7 @@ <% if page == current_page %> <%= page %> <% else %> - <%= helpers.link_to_specific_page @facet_field.paginator, "Page: #{page}", page.to_i, params: @facet_field.search_state.to_h.merge(page: page), class: "page-link" %> + <%= helpers.link_to_specific_page @facet_field.paginator, page.to_i, "Page: #{page}", class: "page-link" %> <% end %> diff --git a/app/overrides/lib/kanamari/helpers/helper_methods_override.rb b/app/overrides/lib/kanamari/helpers/helper_methods_override.rb index 6cb50f1d2..6aa92c094 100644 --- a/app/overrides/lib/kanamari/helpers/helper_methods_override.rb +++ b/app/overrides/lib/kanamari/helpers/helper_methods_override.rb @@ -2,7 +2,7 @@ # [hyc-override] https://github.com/kaminari/kaminari/blob/v1.2.2/kaminari-core/lib/kaminari/helpers/helper_methods.rb Kaminari::Helpers::HelperMethods.module_eval do # Helper to generate a link to a specific page - def link_to_specific_page(scope, name, page = 1 **options) + def link_to_specific_page(scope, page = 1, name, **options) begin # Validate inputs raise ArgumentError, 'Scope is required and must respond to :total_pages' unless scope&.respond_to?(:total_pages)