Remove .html extension on static deployments
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 37.4k
- Forks
- 3k
- Avg merge
- 1d 3h
- Merged PRs (30d)
- 73
Description
What problem will this feature address?
When deploying a static website and you have a link to your other HTML site about.html, it then shows /about.html.
Describe the solution you'd like
Would it be possible to automatically strip away the .html extension?
It should be possible in the NGINX configuration. (Maybe controlled via a checkbox so it's no breaking change)
Describe alternatives you've considered
Tried Traefik middlewares but I think they only work for incoming requests or I just haven't got it working.
Additional context
No response
Will you send a PR to implement it?
No
Contributor 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.
Research direction
Start by locating the NGINX configuration and deployment settings used for static websites. Check how optional deployment behavior is exposed, then determine how extensionless links should resolve without breaking existing .html URLs; done means a configurable deployment produces the expected clean URLs.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- nginx
- Domain
- devops, infrastructure
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100