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
Given the config below, the generated canonical link for the page in the default lang en on http://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.
Reproductions make it possible for us to triage and fix issues quickly with a relatively small team. It helps us discover the source of the problem, and also can reveal assumptions you or we might be making.
What will happen?
If you've provided a reproduction, we'll remove the label and try to reproduce the issue. If we can, we'll mark it as a bug and prioritise it based on its severity and how many people we think it might affect.
If needs reproduction labeled issues don't receive any substantial activity (e.g., new comments featuring a reproduction link), we'll close them. That's not because we don't care! At any point, feel free to comment with a reproduction and we'll reopen it.
How can I create a reproduction?
We have a couple of templates for starting with a minimal reproduction:
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
The text was updated successfully, but these errors were encountered: