🐛 Bug Report
When docsUrl is set to an empty string, localization enabled and path to the file contains "en" letters, then pages with redirects would be generated instead of pages with contents. So, it is impossible to reach the content
yes
To Reproduce
- run
npm run examples translations to make localization files available
- enable any other language (let's say "ru") in
translations.js
- in docs folder create a folder named "components" (or any other name, containing "en" letters) and put .md file there
- add a link to that file to
sidebars.js, so that you can reach it
- copy the content of docs folder to
website/translated_docs/ru so that localized files are visible to the system
- set
docsUrl: '' in siteConfig.js
- run
npm run build
Expected behavior
file build/test-site/ru/components/myFile.html contains data from the original file website/translated_docs/ru/components/myFile.md
Actual Behavior
file build/test-site/ru/components/myFile.html contains redirection link to the file itself
Please, see the screenshot

Reproducible Demo
kav137/docusaurusDocs@5e54a03
🐛 Bug Report
When
docsUrlis set to an empty string, localization enabled and path to the file contains "en" letters, then pages with redirects would be generated instead of pages with contents. So, it is impossible to reach the contentHave you read the Contributing Guidelines on issues?
yes
To Reproduce
npm run examples translationsto make localization files availabletranslations.jssidebars.js, so that you can reach itwebsite/translated_docs/ruso that localized files are visible to the systemdocsUrl: ''insiteConfig.jsnpm run buildExpected behavior
file
build/test-site/ru/components/myFile.htmlcontains data from the original filewebsite/translated_docs/ru/components/myFile.mdActual Behavior
file
build/test-site/ru/components/myFile.htmlcontains redirection link to the file itselfPlease, see the screenshot
Reproducible Demo
kav137/docusaurusDocs@5e54a03