Fix <link rel=alternative> URLs
This commit is contained in:
parent
7e12752e12
commit
770a6f4e2e
@ -28,7 +28,8 @@ layout: compress
|
|||||||
{% unless other_lang.code == language %}
|
{% unless other_lang.code == language %}
|
||||||
{% assign newSegment = "/" | append: other_lang.code | append: "/" %}
|
{% assign newSegment = "/" | append: other_lang.code | append: "/" %}
|
||||||
|
|
||||||
<link rel="alternate" hreflang="{{ other_lang.code }}" href="{{ page.url | replace: oldSegment, newSegment }}" />
|
<link rel="alternate" hreflang="{{ other_lang.code }}"
|
||||||
|
href="{{ page.url | replace: oldSegment, newSegment | relative_url }}" />
|
||||||
{% endunless %}
|
{% endunless %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user