Skip to content

Commit

Permalink
Merge pull request #2764 from projectblacklight/search-action-url-dep…
Browse files Browse the repository at this point in the history
…recation

Stop an internal deprecation warning in search_action_url
  • Loading branch information
jcoyne committed Jul 7, 2022
2 parents fd5f5dd + 0d3733d commit b511402
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/controllers/concerns/blacklight/catalog.rb
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,7 @@ def render_document_export_format format_name
# By default, any search action from a Blacklight::Catalog controller
# should use the current controller when constructing the route.
def search_action_url options = {}
options = options.to_h if options.is_a? Blacklight::SearchState
url_for(options.reverse_merge(action: 'index'))
end

Expand Down

0 comments on commit b511402

Please sign in to comment.