You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was getting a duplicate english entry as alternate links. I was expecting one of them to be x-default. So digging into the code I found that [[+locale]] actually contains x-default declaration for the default context which would fix the error. However, by default the chunk on alternate links is using
hreflang="[[+cultureKey]]"
So I worked around it by creating my own chunk and adding a bit of logic in it like so:
I am guessing this is a bug as it doesn't make sense it would be intentional, but when you use the sitemap shortcode:
I was getting a duplicate english entry as alternate links. I was expecting one of them to be x-default. So digging into the code I found that
[[+locale]]
actually containsx-default
declaration for the default context which would fix the error. However, by default the chunk on alternate links is usingSo I worked around it by creating my own chunk and adding a bit of logic in it like so:
This gives me the intended output but I figure I would post it here in case someone comes across a similar issue.
Again I am not sure if that is intentional or not as we have a highly customized website and thus it might be something specific to our environment.
The text was updated successfully, but these errors were encountered: