MENU
<Redirect>
The boolean attributes "exact", "strict" and "sensitive" can also be used on <Route>.
<Redirect to={{pathname: "/login", search: "?utm=your+face", state: {referrer: currentLocation} }} push exact strict sensitive from="/oldpath">... | Or a string.Push a new entry onto the history, No to "/oldpath/x". No to "/oldpath/". No to "/OLDpath". Match a location inside <Switch>. Regexp. |
With <Redirect> (<Route> also)you can programmatically redirect your user to another URL by rendering the component. By default, the current location is replaced by the new one, like server-side redirects (HTTP 3xx).