-
-
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 executionv1This issue is for Docusaurus 1This issue is for Docusaurus 1
Description
🐛 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
Have you read the Contributing Guidelines on issues?
yes
To Reproduce
- run
npm run examples translationsto 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/ruso that localized files are visible to the system - set
docsUrl: ''insiteConfig.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
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 executionv1This issue is for Docusaurus 1This issue is for Docusaurus 1
