Home page renders twice, one below the other.
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.
- [ ] I have read the console error message carefully (if applicable).
Description
The home page renders twice, one below the other. This happens only when I use the absolute path for example - https://docusaurus.io/index.html. The search and theme change button becomes unresponsive for the page rendered on top. This happens on the initial load only.
Reproducible demo
No response
Steps to reproduce
Check this URL - https://docusaurus.io/index.html
Expected behavior
The home page should render the content once.
Actual behavior
The home page renders content twice.
Your environment
- Public source code:
- Public site URL:
- Docusaurus version used: 3.2.1
- Environment name and version (e.g. Chrome 89, Node.js 16.4): 18.13.0
- Operating system and version (e.g. Ubuntu 20.04.2 LTS): Windows 10
Self-service
- [ ] I'd be willing to fix this bug myself.
Thanks, this has been reported multiple times before and is not really a bug because the page should not be accessed through that URL but through its canonical variant, and your host can be configured to do a server redirect.
However this has been reported quite often in the past and I agree it's confusing and we should try to fix it:
- https://github.com/facebook/docusaurus/issues/9916
- https://github.com/facebook/docusaurus/issues/9552
I have a working solution (https://github.com/facebook/docusaurus/pull/10059) but I'll delay merging this to Docusaurus v4