N
Nuxt5mo ago
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.
3 Replies
Lannister
LannisterOP5mo ago
anyone has a clue how to re-normalize all the route paths to lowercase? or set some flag, config or hook somewhere?
Cake
Cake5mo ago
is the repo private?
Lannister
LannisterOP5mo ago
it is now, yes, but I decided to go all lowercase in files based routing I dont see the point of using hooks and modules to overcome this its too hacky
Want results from more Discord servers?
Add your server