From 9ae8cd1a40ea71ffb8dcf7c7ffadc6a8e7e99ef7 Mon Sep 17 00:00:00 2001 From: Philip Arndt Date: Tue, 8 Mar 2011 14:28:29 +1300 Subject: [PATCH] Switch to the website under the context of the default frontend locale if supported. --- core/lib/refinery/helpers/site_bar_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/lib/refinery/helpers/site_bar_helper.rb b/core/lib/refinery/helpers/site_bar_helper.rb index 611dfb6317..53074ed0c7 100644 --- a/core/lib/refinery/helpers/site_bar_helper.rb +++ b/core/lib/refinery/helpers/site_bar_helper.rb @@ -8,7 +8,7 @@ def site_bar_switch_link (if session.keys.include?(:website_return_to) and session[:website_return_to].present? session[:website_return_to] else - root_path + root_path(:locale => (::Refinery::I18n.default_frontend_locale if defined?(::Refinery::I18n) && ::Refinery::I18n.enabled?)) end)) do link_to t('.switch_to_your_website_editor'), (if session.keys.include?(:refinery_return_to) and session[:refinery_return_to].present?