app/controllers/concerns/spotlight/controller.rb in blacklight-spotlight-2.0.0.rc1 vs app/controllers/concerns/spotlight/controller.rb in blacklight-spotlight-2.0.0.rc2
- old
+ new
@@ -52,12 +52,10 @@
I18n.locale = params[:locale] || I18n.default_locale
end
def default_url_options
return super unless current_exhibit
- return super if current_exhibit.languages.accessible_by(current_ability).none? || I18n.locale == I18n.default_locale
-
- super.merge(locale: I18n.locale)
+ super.merge(locale: (I18n.locale if I18n.locale != I18n.default_locale))
end
# overwrites Blacklight::Controller#blacklight_config
def blacklight_config
if current_exhibit