balderdashy / balderdashy/sails

Is there a way to enable double-slashes in URLs?

Open
#6,806 2 comments 0 reactions 0 assignees View on GitHub
question what do you think?
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.