Documentation links broken #3402
Unanswered
shrink
asked this question in
Bug report
Replies: 1 comment
-
|
@shrink I'll take care of that |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Bug Description
The docs have been restructured in #3392 but it doesn't look like any equivalent changes were made to the documentation's URL structure. Google "zustand" + any keyword (e.g: "zustand middleware") and the links Google returns are probably broken, e.g:
https://zustand.docs.pmnd.rs/middlewares/redux -> 404
Reviewing the changes, it looks like the simplest way would be to set up redirects in the
next.config.mjs, e.g:I recommend starting out with non-permanent redirects because permanent redirects are very difficult to undo due to caching. Switching to permanent redirects once you're happy everything is working in production is good.
A good idea is to also add some information to the 404 page. Right now it's a generic 404 page so it is not obvious to visitors that the page may still exist but in a new location.
Reproduction Link
https://zustand.docs.pmnd.rs/middlewares/redux
cc @dbritto-dev
Beta Was this translation helpful? Give feedback.
All reactions