Closed vibonacci closed 4 months ago
Would you be able to provide a reproduction? π
X2 Also happen to me
Closing due to inactivity. Please open a new issue with a reference to this one if you can follow up with more information.
Thanks!
X2 ζδΉιε°θΏθΏη§ζ ε΅
I guess I have a reproduction for this at https://github.com/nuxt-modules/i18n/issues/3099
Environment
"@nuxtjs/i18n": "^8.3.0" "nuxt": "^3.11.2"
Reproduction
N/A
Describe the bug
Given the config below, the generated canonical link for the page in the default lang
en
onhttp://localhost:3000
will be correct:<link rel="canonical" href="http://localhost:3000/" data-hid="5cca6f5">
However, switching to the
nl
locale, the generated canonical link will point to the URL with /nl appended:<link rel="canonical" href="http://localhost:3000/nl" data-hid="5cca6f5">
The canonical link should point to the main language link as these pages are considered the same for SEO purposes, only have different language.
Using the
prefix_except_default
strategy.Additional context
No response
Logs
No response