-
-
Notifications
You must be signed in to change notification settings - Fork 9.8k
Closed
Labels
bugAn error in the Docusaurus core causing instability or issues with its executionAn error in the Docusaurus core causing instability or issues with its executiondomain: trailing slashRelated to trailing slash configRelated to trailing slash config
Description
🐛 Bug Report
Hosting setups that add a trailing back slash to urls break all inter-site links on the page.
Have you read the Contributing Guidelines on issues?
Yes
To Reproduce
- Create a new site using
npx @docusaurus/init@next init test-site classic - Create two new sub folders in docs called
aandb - Add attached file
a.mdtoafolder, andb.mdtobfolder. - Replace
sidebar.jswith attached version. - run
npm run buildto generate the flat site. - Load the site in any browser by navigating directly to the url of page
a:http://127.0.0.1:8080/docs/a/a - Click the link
Link to page "b"
Expected behavior
Page b should load.
Actual Behavior
Page Not Found page.
Your Environment
- Docusaurus version used: 2.0.0-alpha.48
- Environment name and version (e.g. Chrome 78.0.3904.108, Node.js 10.17.0): Safari 13.0.5 (15608.5.11), Chrome 80.0.3987.132, Firefox 73.0.1
- Operating system and version (desktop or mobile): macOS 10.15.3 (19D76)
Reproducible Demo
(Paste the link to an example repo, including a siteConfig.js, and exact instructions to reproduce the issue.)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugAn error in the Docusaurus core causing instability or issues with its executionAn error in the Docusaurus core causing instability or issues with its executiondomain: trailing slashRelated to trailing slash configRelated to trailing slash config