diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 45bc2402..e0299e56 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -43,7 +43,10 @@ module ApplicationHelper end def canonical_path(resource) + original_locale = I18n.locale + I18n.locale = I18n.default_locale content_for :meta, tag(:link, :rel => 'canonical', :href => url_for(resource)) + I18n.locale = original_locale end def contact_email