Skip to content

Fix hreflang links and canonical url so they link to the un-prefixed url

Fix hreflang and canonical links so they link to the un-prefixed url instead of the current language prefix. Looks like I got this wrong in my last change, which was using the current language for all the links, e.g.:

<link rel="alternate" hreflang="he" href="https://f-droid.org/de/" />
<link rel="alternate" hreflang="hu" href="https://f-droid.org/de/" />

This uses page.permalink instead of page.url

Edited by Steven McDonald

Merge request reports