Replies: 1 comment 1 reply
-
|
It's hard to understand your use-case, a repro would help using docusaurus.new starting from an empty project. I am not aware of redirections to |
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
I'm developing an app with with 3 different versions.
Most of them have the same documentation but served differently for each version.
I'm trying to make a switcher to be able to change the version of the documentation.
This switcher makes use of the
useLocationhook to get the pathname so I can make different dynamic routes. The thing is, sometimes the documentation doesn't exists for some versions. For example, let's say I have 3 base urls:/water,/fire, and/air. If I go to/water/burn-thisI get the NotFound component. This is right because I don't have this documentation yet for water, but I do have it in/fireso the switcher should get me to/fire/burn-thisbut instead it changes the links to/fire/404and/air/404even though the current pathname is/burn-this.I was wondering if this is a docusaurus thing treating the NotFound routes as 404 under the hood, and just applies this change when building the app, because locally it works.
Beta Was this translation helpful? Give feedback.
All reactions