🐛 Bug Report
Hosting setups that add a trailing back slash to urls break all inter-site links on the page.
Yes
To Reproduce
- Create a new site using
npx @docusaurus/init@next init test-site classic
- Create two new sub folders in docs called
a and b
- Add attached file
a.md to a folder, and b.md to b folder.
- Replace
sidebar.js with attached version.
- run
npm run build to 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.)
http://littlespex.com/docusaurus/docs/a/a
test-site.zip
🐛 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
npx @docusaurus/init@next init test-site classicaandba.mdtoafolder, andb.mdtobfolder.sidebar.jswith attached version.npm run buildto generate the flat site.a:http://127.0.0.1:8080/docs/a/aLink to page "b"Expected behavior
Page
bshould load.Actual Behavior
Page Not Foundpage.Your Environment
Reproducible Demo
(Paste the link to an example repo, including a
siteConfig.js, and exact instructions to reproduce the issue.)http://littlespex.com/docusaurus/docs/a/a
test-site.zip