In fact, I created my own component. <Redirect> It takes information from the react-router element, so I can save it on my routes. For instance:
<Route path="/privacy-policy" component={ Redirect } loc="https://meetflo.zendesk.com/hc/en-us/articles/230425728-Privacy-Policies" />
Here is my component - any curious:
import React, { Component } from "react"; export class Redirect extends Component { constructor( props ){ super(); this.state = { ...props }; } componentWillMount(){ window.location = this.state.route.loc; } render(){ return (<section>Redirecting...</section>); } } export default Redirect;
EDIT - NOTE: This is with react-router: 3.0.5 , it is not so easy in 4.x
source share