title: Android redirect does not work
body: <p>I need to redirect in a javascript file to a given URI specified by the user.</p>
  
  <p>So a quick example how I do this:</p>
  
  <pre><code>function redirect(uri) {
    if(navigator.userAgent.match(/Android/i)) {
      document.location.href=uri;      
    }
    window.location.replace(uri);
  }
  </code></pre>
  
  <p>This works fine for everything except Android devices. iOS and all modern Webbrowsers support window.location.replace(...), however Android devices don't do that.</p>
  
  <p>But if I now try to redirect using this function, lets say to "<a href="http://www.google.com" rel="noreferrer">http://www.google.com</a>" the android devices fail to actually redirect to the given url.</p>
  
  <p>Now is it just me being stupid here right now or is there another problem?</p>
  
  <p>Sincerly</p>
  
  <p>p.s. the redirect function is called as an callback from an XML request sent, but that should not be an issue at all.</p>