Links are incorrect after refresh page #5109
Labels
bug
An error in the Docusaurus core causing instability or issues with its execution
closed: question
This issue is a user error/misunderstanding.
🐛 Bug Report
Prerequisites
npm run clear
oryarn clear
command.rm -rf node_modules yarn.lock package-lock.json
and re-installing packages.Description
Links in doc pages that refer to another doc are wrong.
For example:
When I'm in doc page A has link
/docs/current-doc
which contains:At the first time, when hover
other doc
, the link is/docs/other-doc-file
=> true.But, after reloading page, the current URL is appended with trailing slash: ``/docs/current-doc/
. And the reference link will become
/docs/current-doc/other-doc-file` => 404 page.Note that the issue is only in the production, neither in the local build nor in the sandbox.
Have you read the Contributing Guidelines on issues?
Yes
Steps to reproduce
Use https://new.docusaurus.io to create a CodeSandbox reproducible demo of the bug.
(Write your steps here:)
https://wiki.polkadot.network/docs/getting-started
https://wiki.polkadot.network/docs/learn-account-generation/
, which is correct.https://wiki.polkadot.network/docs/getting-started/
(has trailing slash)https://wiki.polkadot.network/docs/getting-started/learn-account-generation
, which is deadlink.Expected behavior
It will go to the right page:
https://wiki.polkadot.network/docs/learn-account-generation
Actual behavior
It goes to the wrong page:
https://wiki.polkadot.network/docs/getting-started/learn-account-generation
Your environment
Reproducible demo
Use https://new.docusaurus.io to create a CodeSandbox reproducible demo of the bug.
(Paste the link to an example repo, including a
docusaurus.config.js
, and exact instructions to reproduce the issue.)The text was updated successfully, but these errors were encountered: