diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 6cb183d..ce2859d 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -6,7 +6,11 @@ class ApplicationController < ActionController::Base before_action :set_locale def default_url_options(options={}) - {locale: I18n.locale} + if params[:locale] + {locale: I18n.locale} + else + {} + end end private