localyzed 0.0.0.1 → 0.0.0.2
Sign up to get free protection for your applications and to get access to all the features.
@@ -22,7 +22,7 @@ class ActionController::Base
|
|
22
22
|
# if !request.xhr then non ajax request then ensure the path is localized (/^(en|fr)\/.*/)
|
23
23
|
def redirect_to_localized_path_if
|
24
24
|
@translatable = true # used to display or hide the languages menu
|
25
|
-
if ( !request.xhr? && ( !request.path.match(
|
25
|
+
if ( !request.xhr? && ( !request.path.match(/\/(en|fr)(\/|$)/) || params[:locale] != I18n.locale.to_s) && request.method == 'GET')
|
26
26
|
flash.keep
|
27
27
|
# rediredct 302 for root / 301 for other pages
|
28
28
|
if request.path == '/'
|
data/lib/localyzed/version.rb
CHANGED