From 16076cffc80e33b144ff92d986f6da0f1d5b7741 Mon Sep 17 00:00:00 2001 From: David Campbell Date: Tue, 17 Dec 2024 09:51:04 -0500 Subject: [PATCH] syntax --- .../blacklight/facet_field_pagination_component.html.erb | 2 +- app/overrides/lib/kanamari/helpers/helper_methods_override.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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)