getgrav / grav-plugin-langswitcher

Grav LangSwitcher Plugin
https://getgrav.org
MIT License
28 stars 26 forks source link

Plugin generates wrong hreflang code #43

Closed rlattuad closed 2 years ago

rlattuad commented 6 years ago

I have a blog setup with 2 languages (en, it). Showing an english page from my blog I get the following:

While the en code is ok, where does the extra /blog/ in the it link come from ?

Starting from an IT page I get exactly the same problem plus the fact that it does not see EN as the default language and sets the IT page as canonical:

Maybe there is something wrong in the blog configuration ? Where do I set the default language ?

Any help appreciated Thanks r

rhukster commented 2 years ago

Should be fully sorted with next 3.0 release.