Skip to content

Commit

Permalink
Merge pull request #2614 from kyoshino/bug-1097049-alternate-enca
Browse files Browse the repository at this point in the history
Add en-CA alternate URL for Bug 1097049
  • Loading branch information
jgmize committed Dec 29, 2014
2 parents d133d06 + aea4286 commit 5126ba4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bedrock/base/templates/includes/canonical-url.html
Expand Up @@ -3,5 +3,8 @@
{% if translations -%}
{% for code, label in translations|dictsort -%}
<link rel="alternate" hreflang="{{ code|replace('en-US', 'en') }}" href="{{ settings.CANONICAL_URL + '/' + code + canonical_path }}" title="{{ label|safe|replace('English (US)', 'English') }}">
{% if code == 'en-US' -%}{# Append en-CA for Bug 1097049 -#}
<link rel="alternate" hreflang="{{ code|replace('en-US', 'en-CA') }}" href="{{ settings.CANONICAL_URL + '/' + code + canonical_path }}" title="{{ label|safe|replace('English (US)', 'English (Canada)') }}">
{% endif -%}
{% endfor -%}
{% endif %}

0 comments on commit 5126ba4

Please sign in to comment.