-
-
Notifications
You must be signed in to change notification settings - Fork 8.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrating from 3.0.0 to 3.1.1 result in "found broken links" #9803
Comments
Hi, we introduced a broken link detector feature in Docusaurus 3.1, these errors indicates broken links that links to non existent pages which needs to be updated, I saw that you fixed links in your commits and now the build is working |
@OzakIOne Thanks for your answer and time, sadly I did not fixed it, I work around it. From the documentation an anchor broken dectector was introduced in 3.1. The links were not broken, as the plugin redirect was suppose to take care of them. From the changelog For 3.1.1 🐛 Bug Fix
🏃♀️ Performance
For 3.1.0 🚀 New Feature
Therefore, no breaking change notice, or different behavior was expected from 3.0.0. Therefore a regression has been introduced |
@axel7083 there's a behavior change indeed, but we consider it as a bugfix instead of a breaking change. You have broken links on your site. v3.0 simply did not report those properly, and v3.1 now report those. See the problem in action on this prod page: CleanShot.2024-02-01.at.12.43.32.mp4Note: this page redirect exists (because it is created by the redirect plugin): But it is not part of the app SPA routes so the redirect only happens when you open/refresh that URL, but shows a 404 when we navigate to it with the If you want to link to pages that are "outside" Docusaurus routing (ie html files generated by the redirect plugin), you should tell the link component to do so. For that we have a In my opinion:
|
@slorber thanks you for your time and those advice, we will work on it on our side to try migrating to 3.1.1, thanks you again for the explanations and details ! |
👍 np FYI we could enhance the system so that the redirect plugin routes can be navigated with
For these reasons, we'd prefer to keep the system as is. |
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
We are using the
@docusaurus/plugin-client-redirects
plugins, and it seems that when migrating all docusaurus elements to 3.1.1 some redirects are not made properly leading to docusaurus raising an error for broken links.Reproducible demo
No response
Steps to reproduce
tests with 3.1.1
https://github.com/axel7083/podman-desktop/tree/deps/docusaurus-3-1-1
branchwebsite
tests with 3.0.0
Repeat the previous step with any commit prior to podman-desktop/podman-desktop@a8f5a93 (e.g. podman-desktop/podman-desktop@8a823fe)
Expected behavior
I am expected the build to be successful, as it is when using 3.0.0.
Actual behavior
/docs/onboarding-for-containers/installing-podman
must be redirected to/docs/podman/installing
(installing.md exists)/docs/containers/registries/authenticating-to-a-preconfigured-registry
to/docs/containers/registries
(registries is a folder with an index.md in it)/docs/compose/compose-spec
to/docs/compose
(compose is a folder with an index.md in it)Your environment
Self-service
The text was updated successfully, but these errors were encountered: