title: React-Router 4, Redirect with dynamic path
body: <p>A user receives an email with invitation code like <code>http://website.com/invitation/%s</code> where <code>%s</code> is an invitation code.</p>
  
  <p>Now I would like to redirect that URL in my app but keep the invitation code like:</p>
  
  <pre><code>&lt;Redirect from="/invitation/:code" to="/auth/register/:code" /&gt;
  </code></pre>
  
  <p>So when the user clicks the link in email:</p>
  
  <p><code>http://website.com/invitation/2abc433</code></p>
  
  <p>he will be transferred to:</p>
  
  <p><code>http://website.com/auth/register/2abc433</code></p>
  
  <p>Unfortunately, with Redirect component like above, he is transferred to</p>
  
  <p><code>http://website.com/auth/register/:code</code></p>