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
Is there a way to enable double-slashes in URLs? #6806
Comments
@alxndrsn Thanks for posting! We'll take a look as soon as possible. In the mean time, there are a few ways you can help speed things along:
Please remember: never post in a public forum if you believe you've found a genuine security vulnerability. Instead, disclose it responsibly. For help with questions about Sails, click here. |
@alxndrsn - Definitely a good point and I see a lot more sites supporting double-slashes (converted to single) these days. I'm not entirely sure of an official way to enable automatic double to single slash routing in Sails, but I will do some digging for potential workarounds. I'll also bring this up with the team for consideration. Could instantly reduce the odds of a 404 from typos / poor config 🎉 Instant UX boost 😄 |
Occasionally poor configuration leads to double-slashes in URL paths, e.g. http://my-server//some-endpoint
If
/some-endpoint
maps to a controller, sails will still return404 Not Found
for//some-endpoint
. Is there a setting to allow sails to route//some-endpoint
to/some-endpoint
without creating individual routes for every possible route with extra slashes?The text was updated successfully, but these errors were encountered: