title: React router gives "redirect to the same route" error
body: <p>I have got routes like below and I want to redirect users to admin/users page if someone clicks ADMIN button (this button routes to /admin) on the home page but I get this error: </p>
  
  <blockquote>
    <p>You tried to redirect to the same route you're currently on:
    /admin/users</p>
  </blockquote>
  
  <pre><code>&lt;Switch location={this.props.location}&gt;
       &lt;Route path="/" exact component={Home} /&gt;
       &lt;Route path="/orders" component={Orders} /&gt;
       &lt;Route path="/account" component={Account} /&gt;
  
       &lt;Route path="/admin/users" component={Users} /&gt;
       &lt;Route path="/admin/auth" component={Auth} /&gt;
  
       &lt;Redirect from="/admin" to="/admin/users" /&gt;
  
       &lt;Redirect from="*" to="/" /&gt;
  &lt;/Switch&gt;
  </code></pre>
  
  <ul>
  <li>I added location attribute into Switch because I use animations while routing. You can find an example at this link: <a href="https://reacttraining.com/react-router/web/example/animated-transitions" rel="nofollow noreferrer">https://reacttraining.com/react-router/web/example/animated-transitions</a></li>
  <li>If I remove location attribute everything is fine but with this attribute I get errors.</li>
  <li>I searched lots of sites and tried several things but I could not achieve. I need location attribute, I cannot remove it.</li>
  </ul>
  
  <p>If you help I will be appreciated.</p>
  
  <p>Thanks</p>