docusaurus
docusaurus copied to clipboard
Sidebar doesn't respect trailingSlash settings.
Have you read the Contributing Guidelines on issues?
- [x] I have read the Contributing Guidelines on issues.
Prerequisites
- [x] I'm using the latest version of Docusaurus.
- [x] I have tried the
npm run clearoryarn clearcommand. - [x] I have tried
rm -rf node_modules yarn.lock package-lock.jsonand re-installing packages. - [x] I have tried creating a repro with https://new.docusaurus.io.
- [x] I have read the console error message carefully (if applicable).
Description
Even with trainlingSlash=false sidebar instead of links with .html suffix shows only ids
Reproducible demo
No response
Steps to reproduce
- in docusaurus.config.ts set trailingSlash = false
- render site
Expected behavior
In sidebar link will be http://localhost:3000/docs/category/tutorial-basics/create-a-page instead of expected http://localhost:3000/docs/category/tutorial-basics/create-a-page.html. It works during navigation phase but i'll be impossible to provide permalink or refresh the page on deployed site. Node js works fine though
Actual behavior
described in expected behavior
Your environment
- Docusaurus version used: 3.9.2
- Operating system and version (windows 11):
Self-service
- [ ] I'd be willing to fix this bug myself.