-
-
Notifications
You must be signed in to change notification settings - Fork 10.6k
Matching both path
and path/
#853
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Also got the same problem. My DefaultRoute has to work on the following paths:
Is this the only solution for this?
|
I tried the redirect option, but then it doesn't work if the app is mounted somewhere that redirects to trailing slashes. What I want is it to respond to both. |
I asked a similar question earlier, try this:
notice the |
We really need an easy way to make the trailing slash optional. Let's follow up in #820. |
The path matching document doesn't really indicate how to get an app to mount to both
path
andpath/
(with the trailing slash).I recently encountered this problem when mounting an application as an express sub-app (which will always mount the sub-app with a trailing slash).
The text was updated successfully, but these errors were encountered: