From 1439e4a74c2e01acf49b05ad66c6675d85106f30 Mon Sep 17 00:00:00 2001 From: Matchu Date: Sun, 13 Jan 2013 15:46:09 -0600 Subject: [PATCH] canonical paths are always in english --- app/helpers/application_helper.rb | 3 +++ 1 file changed, 3 insertions(+) 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