title: React Router v4 Redirect with parameters
body: <p>I have a route set up:</p>
  
  <pre><code>&lt;Route path="/search/:name" component={foo} /&gt;
  </code></pre>
  
  <p>In a component I am trying to redirect based on the entered name:</p>
  
  <pre><code>&lt;Redirect to="/search" /&gt;
  </code></pre>
  
  <p>I want to pass <code>this.state.name</code> to the Redirect, like <code>/search/name</code>. How?</p>