Catchall redirect with alredy existing route? #2335
Unanswered
XavDesbordes
asked this question in
Q&A
Replies: 1 comment
-
Current workaround:
But something like |
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.
-
Hi,
Reading this,
it seems that PageNotFound is the fall back page for any unknown url.
But what if I don't want to redirect to a specific page, but instead my home page ?
won't work: entering
example.com/yes
will keep the yes in place instead of redirecting to the Home.The workarounf I can think of is to create a
PageNotFound
component that immediately redirect to Home but if there is a solution directly in the Router I take it.How to deal with that ?
Thanks,
Beta Was this translation helpful? Give feedback.
All reactions