If the permalink of a page is assigned to '/xxx', the hreflang for other languages are wrong, like
If the permalink of a page is assigned to 'xxx/', the hreflang for default_lang is wrong.
We can see the bug from the source code of https://polyglot.untra.io/seo/.
This href url is wrong.
<link rel="alternate" hreflang="en" href="https://polyglot.untra.ioseo/"/>
We should add a slash for the default language in the template.
Type of change
[ ] Docs update (changes to the readme or a site page, no code changes)
[ ] Ops wrangling (automation or test improvements)
[x] Bug fix (non-breaking change that fixes an issue)
[ ] New feature (non-breaking change that adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] Sweet release (needs a lot of work and effort)
…anguages
🔤 Polyglot PR
This href url is wrong.
<link rel="alternate" hreflang="en" href="https://polyglot.untra.ioseo/"/>
We should add a slash for the default language in the template.
Type of change