title: React-router Redirect error when using object instead of string for "to"
body: <p>I am using react-router and want to add a redirect. This is the Redirect I am using</p>
  
  <pre><code>&lt;Redirect from="/" to={{ pathname: "/sth", search: "?tst=1" }} /&gt;
  </code></pre>
  
  <p>For some unknown reason I get the following error from react:</p>
  
  <pre><code>Warning: Failed prop type: Invalid prop `to` of type `object` supplied to `Redirect`, expected `string`.
      in Redirect
  </code></pre>
  
  <p>I was not able to find why this doesn't work. Any ideas?</p>