Broken relative links in docs and i18n translation #10907
Labels
bug
An error in the Docusaurus core causing instability or issues with its execution
domain: i18n
Related to the i18n system
Have you read the Contributing Guidelines on issues?
Prerequisites
npm run clear
oryarn clear
command.rm -rf node_modules yarn.lock package-lock.json
and re-installing packages.Description
Problem with relative links in docs and i18n translation.
Reproducible demo
https://trofim24.github.io/
Steps to reproduce
npx create-docusaurus@latest my-website classic -t
command from instructioncd my-website
mkdir -p i18n/fr/docusaurus-plugin-content-docs/current/tutorial-extras/img
cp -r docs/tutorial-extras/img/** i18n/fr/docusaurus-plugin-content-docs/current/tutorial-extras/img
cp -r docs/tutorial-extras/translate-your-site.md i18n/fr/docusaurus-plugin-content-docs/current/tutorial-extras
command from instruction
locales: ['en', 'fr']
and
{ type: 'localeDropdown', position: 'left', },
npm run build
command from instructionAlso you can visit my build site to check broken link:
/fr/docs/tutorial-basics/congratulations
broken link
Expected behavior
The build is OK
Actual behavior
[WARNING] Docusaurus found broken links!
Please check the pages of your site in the list below, and make sure you don't reference any path that does not exist.
Note: it's possible to ignore broken links with the 'onBrokenLinks' Docusaurus configuration, and let the build pass.
Exhaustive list of all broken links found:
-> linking to ../tutorial-extras/translate-your-site.md (resolved as: /fr/docs/tutorial-extras/translate-your-site.md)
Your environment
Self-service
The text was updated successfully, but these errors were encountered: