Open nezbite opened 4 years ago
Redirecting based on some fuzzy matching algorithm should be avoided IMHO.
In dev mode, the error page should show "similar" named actions though.
But the path section of the URL is supposed to be case-sensitive: check section 6.2.2.1 of https://tools.ietf.org/html/rfc3986
Hence the current behavior is correct.
When accessing a site with wrong capitalization, e.g.
example.com/posts
instead ofexample.com/Posts
an "Action is missing" error is shown. Instead, we should check if an Action exists with another way of capitalization before showing an error. Examples:/posts -> /Posts
/POSTS -> /Posts
/pOSTS -> /Posts
etc.