app/helpers/blacklight/url_helper_behavior.rb in blacklight-5.5.1 vs app/helpers/blacklight/url_helper_behavior.rb in blacklight-5.5.2

- old
+ new

@@ -113,10 +113,14 @@ query_params[:per_page] = per_page unless search_session['per_page'].to_i == default_per_page query_params[:page] = ((counter - 1)/ per_page) + 1 end - link_url = scope.url_for(query_params) + link_url = if query_params.empty? + search_action_path(only_path: true) + else + scope.url_for(query_params) + end label = opts.delete(:label) if link_url =~ /bookmarks/ label ||= t('blacklight.back_to_bookmarks') end