[✨] Case insensitive route matching #124
jessekinsman
started this conversation in
Proposals For Qwik
Replies: 1 comment
-
|
We moved this issue to |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Is your feature request related to a problem?
I have a need to match both the following routes
/Helloand
/helloSince routing relies on filesystems directories and most file system directories are not case sensitive, it makes it impossible to match routes that are the same (when all lowercase) but have uppercase and lowercase characters.
Describe the solution you'd like
Add a configuration that would allow QwikCity routing to be case insensitive
For example:
/helloand
/HelloWould be matched by the same route
Describe alternatives you've considered
We have considered doing a catchall route that will redirect if the case in the requested url does not match the routes.
[...catchall]However, if you have a need for a route that matches both upper and lowercase, this does not work as you have to change the case and redirect and we want to keep the case intact
Additional context
No response
Beta Was this translation helpful? Give feedback.
All reactions