1
0
Fork 0
forked from OpenNeo/impress

canonical paths are always in english

This commit is contained in:
Emi Matchu 2013-01-13 15:46:09 -06:00
parent 29ed401238
commit 1439e4a74c

View file

@ -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