You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently Route handles paths in non case sensitive way. We want to add support for case sensitive paths.
Example:
<Route sensitive path={"/example"} />
path
location.pathname
sensitive
matches
/one
/one
false
true
/one
/One
false
true
/one
/one
true
true
/one
/One
true
false
By default sensitive could be false to keep the behaviour downward compatible.
We believe this can be easily implement since path-to-regex has a support for this option path to regex documentation.
One of the reasons for this feature is for example to avoid duplicate content that has negative impact on search engines.
Please let us know if you have any comments about this. We are thinking make a pull request for this feature.
The text was updated successfully, but these errors were encountered:
I would recommend making that PR. That is the best way to get traction with a feature request. I think that it will require maybe 5 lines of code in the actual modules (plus you will need to write a number of tests).
Currently Route handles paths in non case sensitive way. We want to add support for case sensitive paths.
Example:
By default sensitive could be false to keep the behaviour downward compatible.
We believe this can be easily implement since path-to-regex has a support for this option path to regex documentation.
One of the reasons for this feature is for example to avoid duplicate content that has negative impact on search engines.
Please let us know if you have any comments about this. We are thinking make a pull request for this feature.
The text was updated successfully, but these errors were encountered: