Skip to content

[✨] Case insensitive route matching #47

@jessekinsman

Description

@jessekinsman

Is your feature request related to a problem?

I have a need to match both the following routes
/Hello
and
/hello

Since 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:
/hello
and
/Hello
Would 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions