trailingSlash option in router does impact i18n root page
See original GitHub issueVersion
nuxt-i18n: 6.11.1 nuxt: 2.12.2
Nuxt configuration
mode:
- universal
- spa
Nuxt-i18n configuration
Reproduction Link
https://github.com/miteyema/nuxt-i18n-demo
Steps to reproduce
Configure trailingSlash in router to false
What is Expected?
When I click on any other language, root page url should not have trailing slash, e.g. https://nuxt-i18n-demo.netlify.app/fr
What is actually happening?
When I click on any other language, root page url contains trailing slash, e.g. https://nuxt-i18n-demo.netlify.app/fr/
Issue Analytics
- State:
- Created 3 years ago
- Comments:10
Top Results From Across the Web
trailingSlash option in router does impact i18n root page #717
What is actually happening? When I click on any other language, root page url contains trailing slash, e.g. https://nuxt-i18n-demo.netlify.app/ ...
Read more >Trailing Slash - next.config.js
Configure Next.js pages to resolve with or without a trailing slash. ... By default Next.js will redirect urls with trailing slashes to their...
Read more >angular i18n: avoid trailing slash in url on prerendered root page
I prerender an i18n angular application and i've taught apache to work withouth trailing slashes when a directory is requested.
Read more >Vert.x Web
By default routes are matched in the order they are added to the router. When a request arrives the router will step through...
Read more >Configure Azure Static Web Apps - Microsoft Learn
For optimal website performance, configure a trailing slash strategy using one of the always , never or auto modes. By default, when the ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’ve released a beta version with the fix. You can give it a go:
npm i nuxt-i18n@beta
if you want.#787 was addressed (somewhat) so I don’t see any outstanding issues. Closing.