NuxtN
Nuxt2y ago
6 replies
Lannister

Undesired Route Path Casing Override in i18n module

Reproduction


Navigate to the login screen, the original route path is /auth/signin, not /Auth/Signin

This discrepancy is due to the i18n route override process, which takes into account the casing of the actual files or folders in the pages directory. This behavior contrasts with Nuxt and its router, which normalize all paths to lowercase.

Live Version
Github Repo

It would be preferable for this behavior to be configurable via a flag, rather than needing the creation of a plugin or middleware to address this undesired outcome.
Was this page helpful?