-
-
Notifications
You must be signed in to change notification settings - Fork 516
Open
Labels
Description
Environment
- Operating System: Darwin
- Node Version: v22.14.0
- Nuxt Version: 3.19.3
- CLI Version: 3.29.3
- Nitro Version: 2.12.8
- Package Manager: [email protected]
- Builder: -
- User Config: -
- Runtime Modules: -
- Build Modules: -
@nuxtjs/i18n": "^10.2.1"
Reproduction
There seems to be an issue with Stackblitz. I was not able to create a reproduction.
But it should be pretty easy to replicate:
- in nuxt.config, set the configs
{
i18n: {
experimental: {
strictSeo: true
},
trailingSlash: true,
}
}- run the dev server
- go on any route other than the home page
- look for the canonical link in the head of the DOM
- you should see urls without trailing slashes
Describe the bug
When using the strictSeo mode, it seems like the i18n.trailingSlash config is not respected.
For example, if I have trailingSlash: true, the canonicals will still output "/products" instead of "/products/"
Additional context
No response