Skip to content
This repository has been archived by the owner on Jan 19, 2021. It is now read-only.

Commit

Permalink
Merge pull request #754 from Sancus/fixalternateurls
Browse files Browse the repository at this point in the history
[Bug 950801] Fix alternate url output
  • Loading branch information
Sancus committed Dec 19, 2013
2 parents f619eb2 + 9a3cc2a commit 172b31c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions mozillians/templates/includes/canonical-url.html
@@ -1,7 +1,5 @@
<link rel="canonical" hreflang="{{ LANG }}" href="{{ settings.SITE_URL + '/' + LANG + canonical_path }}">
<link rel="alternate" hreflang="x-default" href="{{ settings.SITE_URL + canonical_path }}">
{% if translations -%}
{% for code, label in LANGUAGES|dictsort -%}
<link rel="alternate" hreflang="{{ code }}" href="{{ settings.SITE_URL + '/' + code + canonical_path }}" title="{{ label|safe }}">
{% for code, name in LANGUAGES|dictsort -%}
<link rel="alternate" hreflang="{{ code }}" href="{{ settings.SITE_URL + '/' + code + canonical_path }}" title="{{ name|safe }}">
{% endfor -%}
{% endif %}

0 comments on commit 172b31c

Please sign in to comment.