localyzed 0.0.1 → 0.0.1.1
Sign up to get free protection for your applications and to get access to all the features.
@@ -27,7 +27,7 @@ class ActionController::Base
|
|
27
27
|
# rediredct 302 for root / 301 for other pages
|
28
28
|
if request.path == '/'
|
29
29
|
params.delete(:action) # removes the action param from params so that it doesn't appear anymore in the redirected url ("?action=root")
|
30
|
-
redirect_to
|
30
|
+
redirect_to url_for(params.merge(:locale => I18n.locale.to_s))
|
31
31
|
else
|
32
32
|
redirect_to(url_for(params.merge(:locale => I18n.locale.to_s, :from_l => (params[:locale] if params[:locale]))), :status => :moved_permanently)
|
33
33
|
end
|
data/lib/localyzed/version.rb
CHANGED