Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Feature request: remove extensions from path

Open
#96 4 comments 1 reaction 0 assignees View on GitHub

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

ideas

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

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from expressjs/serve-static

All issues in expressjs/serve-static

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.