title: React+redux-form - redirect after submit
body: <p>I am using react-router-dom v4 . How can I <strong>redirect</strong> to the page after form submit success?</p>
  
  <p>I followed that tutorial <a href="http://redux-form.com/6.0.0-alpha.11/examples/syncValidation/" rel="noreferrer">LINK</a> . Then I created my own <strong>submit function</strong> :</p>
  
  <pre><code>    const submit=({email='',password=''})=&gt;{
    let error={};
    let isError=false;
    if(email.trim()===''){
      error.email='Required';
      isError=true;
    }
    else if(![ 'test@wp.pl' ].includes(email)){
      error.email='User does not exist';
      isError=true;
    }
  
    if(password.trim()===''){
      error.password='Required';
      isError=true;
    }
    else if(password!=='test'){
      error.password='Wrong password';
      isError=true;
    }
    if(isError){
      throw new SubmissionError(error);
      }
    else{
  
        //redirect to new page
      }
  }
  </code></pre>
  
  <p>In the comment place there should be a redirect funtion, but I don't have idea how to do it. I tried put there :
  <code>&lt;Redirect to="/pageAfterSubmit" push /&gt;</code> but nothing happened.</p>
  
  <p>My browser router in <strong>index.js</strong> looks like this:</p>
  
  <pre><code>&lt;BrowserRouter &gt;
      &lt;Provider store={store}&gt;
          &lt;div&gt;
              &lt;Route path="/"  component={LoginForm}&gt;&lt;/Route&gt;
              &lt;Route path="/markers" component={Markers}&gt;&lt;/Route&gt;
              &lt;Route path="/contact" component={Contact}&gt;&lt;/Route&gt;
            &lt;/div&gt;
      &lt;/Provider &gt;
    &lt;/BrowserRouter&gt;
  </code></pre>
  
  <p>Thanks for any help.</p>