Redirect to Navigate #10450
Unanswered
itamaroh7
asked this question in
v5 to v6 Migration
Replies: 0 comments
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.
-
Hi
I tried to change this code:
<Redirect
from="/:path1?/:path2?/a"
to={{location.pathname.replace('a', '') }}
/>
To Navigate, and it didn't work for me. I even tried to split the Route into two separate paths...
(afcourse I put the Navigate inside a Route)
Beta Was this translation helpful? Give feedback.
All reactions