diff --git a/app/controllers/searches_controller.rb b/app/controllers/searches_controller.rb index 8bdf33d6..26556487 100644 --- a/app/controllers/searches_controller.rb +++ b/app/controllers/searches_controller.rb @@ -49,7 +49,7 @@ def previous_href end def search_href(opts = { }) - permitted = params.slice :page, :page_size, :section, :query, :types + permitted = permit_params.to_h.slice :page, :page_size, :section, :query, :types query_opts = permitted.merge(opts).collect{ |k, v| "#{ k }=#{ v }" }.join '&' "/searches?#{ query_opts }" end