canonical paths are always in english
This commit is contained in:
parent
29ed401238
commit
1439e4a74c
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue