title: React Router v4 Redirect Passing State Undefined
body: <p>I have a private Route /something and I want it to be accessible only if logged in. I'm using Redirect with the state, but on destination location.state is undefined.</p>
  <p>Here is the redirect:</p>
  <pre><code>&lt;Redirect
    to={{
      pathname: &quot;/login&quot;,
      state: { referrer: props.location }
    }}
  /&gt;
  </code></pre>
  <p>And in the destination, I' trying to access it, but I got undefined for the state.</p>
  <pre><code>this.props.location.state is undefined and I can't get referrer
  </code></pre>
  <p>I'm following <a href="https://reacttraining.com/react-router/web/example/auth-workflow" rel="nofollow noreferrer">this example</a>. Could be a bug?</p>