Feature request: remove extensions from path
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- javascript, node.js
- Domain
- backend
Research direction
Start by tracing how send handles extension lookup and how the existing redirect functionality processes paths when the extensions option is populated. Verify the requested redirects for /login.html to /login and /something/index.html to /something/; done means both examples behave as described without affecting paths when extensions is unset.
Written by the indexing model from the issue text.
Description
Since send is able to handle finding files when the extensions don't exist in the path, would it be possible to expand the redirect functionality here to remove extensions?
For instance, these redirects would take place:
| from | to |
|---|---|
| /login.html | /login |
| /something/index.html | /something/ |
I think this would only happen if the extensions option is already populated with the extensions for send to look for.
- Dominant language
- JavaScript
- Stars
- 1.4k
- Forks
- 240
- Avg merge
- 14d 9h
- Merged PRs (30d)
- 1
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from expressjs/serve-static
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
expressjs/serve-static#149 · 2 comments ·
-
too wide CSP header in redirect responsePossibly taken @Sumit-Mayani claimed this 189 days ago. Openbug investigate
Difficulty 4/5 3-5 days Newbie friendliness 25/100
expressjs/serve-static#187 · 9 comments ·
-
awaiting more info
Difficulty 4/5 3-5 days Newbie friendliness 25/100
expressjs/serve-static#155 · 4 comments ·
-
Difficulty 3/5 1-2 days Newbie friendliness 38/100
expressjs/serve-static#138 · 1 comment · 3 reactions ·
-
awaiting more info
Difficulty 5/5 Over a week Newbie friendliness 30/100
expressjs/serve-static#136 · 8 comments ·
All issues in expressjs/serve-static
Similar issues
-
external-plugin ready-for-review third party
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
github/awesome-copilot#5713 · 1 comment ·
Maintainers usually reply within 1 day
-
Mend: dependency security vulnerability
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
carbon-design-system/carbon-react-router-starter#1005 ·
Maintainers usually reply within 1 day
-
enhancement p2 setup
Difficulty 1/5 Under an hour Newbie friendliness 88/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
Query Log shows "Upstream" for CNAME cloaking, schedule, NXDOMAIN hijack and response IP blocksOpenbug good first issue query-log web
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
ferrous-networking/ferrous-dns#326 ·
Maintainers usually reply within 1 day