question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

trailingSlash option in router does impact i18n root page

See original GitHub issue

Version

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:closed
  • Created 3 years ago
  • Comments:10

github_iconTop GitHub Comments

2reactions
rchlcommented, May 26, 2020

I’ve released a beta version with the fix. You can give it a go: npm i nuxt-i18n@beta if you want.

0reactions
rchlcommented, Aug 4, 2020

#787 was addressed (somewhat) so I don’t see any outstanding issues. Closing.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found