404 not working on sub routes #9664
Unanswered
peterpeterparker
asked this question in
Q&A
Replies: 1 comment 1 reply
-
|
Hmmmm yes this looks suspicious The client-side router seems to route the url to another page for some reason, not sure why. Can you create a minimal repro and open a bug please? |
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.
-
Hi, I have swizzled the NotFound component to customize my 404 but, while it works fine on root URL, it isn't used for subroutes.
For example,
http://localhost:3000/unknownworks as expected howeverhttp://localhost:3000/docs/unknownreturns the generic 404.Same with prod build, e.g. https://juno.build/unknown vs https://juno.build/docs/unknown. With prod build deployed I briefly see my 404 but, it seems that the JS kicks it out.
Anything I can do to fix this problem?
Repo: https://github.com/junobuild/docs
Good:
Not good:
Beta Was this translation helpful? Give feedback.
All reactions