nuxt-modules / i18n

I18n module for Nuxt
https://i18n.nuxtjs.org
MIT License
1.75k stars 483 forks source link

Undesired Route Path Casing Override #3018

Open santiagoaloi opened 4 months ago

santiagoaloi commented 4 months ago

Environment


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

Describe the bug

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.