-
-
Notifications
You must be signed in to change notification settings - Fork 9.9k
Hash navigation breaks in 3.4.0 with some plugins #10307
Copy link
Copy link
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 executionexternalThis issue is caused by an external dependency and not Docusaurus.This issue is caused by an external dependency and not Docusaurus.
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 executionexternalThis issue is caused by an external dependency and not Docusaurus.This issue is caused by an external dependency and not Docusaurus.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Have you read the Contributing Guidelines on issues?
Prerequisites
npm run clearoryarn clearcommand.rm -rf node_modules yarn.lock package-lock.jsonand re-installing packages.Description
We're using https://github.com/gabrielcsapo/docusaurus-plugin-search-local and updating to 3.4.0 changes the links the search produces.
They end up in a duplicated format like
https://docs.flathub.org/docs/for-app-authors/linter/docs/for-app-authors/linter#linter-errorsinstead ofhttps://docs.flathub.org/docs/for-app-authors/linter#linter-errorsSee
gabrielcsapo/docusaurus-plugin-search-local#82
I couldn't spot a hint at a behaviour change in the changelog, but I might have overlooked it or this is a regression.
The new hashnav changes are opt in so far it seems?
Reproducible demo
flathub-infra/documentation#339
Steps to reproduce
yarnyarn buildyarn servelinter errorExpected behavior
It should route you to the correct path and scroll down to the hash navigation
Actual behavior
You get a 404
Your environment
Self-service