balderdashy / balderdashy/sails
Is there a way to enable double-slashes in URLs?
- Dominant language
- JavaScript
- Stars
- 22.8k
- Forks
- 1.9k
- PR merge metrics
- No merged PRs in 30d
Description
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 return `404 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?
Contributor guide
Research direction
The issue names no files, tests, or entry points. Start by locating Sails' URL-routing and configuration documentation, then trace the routing entry point to determine whether repeated slashes can be normalized. Done means documenting or implementing a setting that routes //some-endpoint to /some-endpoint without duplicate route declarations.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100