-
-
Notifications
You must be signed in to change notification settings - Fork 10.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
<Redirect> renders blank page #5047
Comments
Related to #5003 ? |
Did you try using exact on the redirect route? |
Yeah, that's what is happening here. Your Redirect is loosely matching the pathname, so you're getting into a loop. |
That works, thanks. I didn't think that
|
@timdorr I think that line in the doc that mentions we can use any props of Route on our Redirect should also be under the Redirect section of the doc: I completely missed it and wondered why things didn't work, and only later found this issue and the mentioned line. |
Version 4.1.1
When navigating to
/settings
I want it to redirect to/settings/profile
I expected this to work
The URL in the address bar is updated but nothing is rendered.
Instead I have to do this:
Is this expected behaviour?
The text was updated successfully, but these errors were encountered: