title: How do I get the current page's URL in an Android WebView using JavaScript?
body: <p>I'm using a <code>WebView</code> to scrape an unholy mess of a website with a bizarre mix of HTTP and Javascript redirects. In my injected script, I need to get the current URL, but it seems like none of the relevant properties ever return anything other than the URL I passed to <code>WebView.loadUrl</code>, even after a redirect.</p>
  
  <p>I've tried:</p>
  
  <ul>
  <li><code>window.location</code></li>
  <li><code>window.location.href</code></li>
  <li><code>document.URL</code></li>
  <li><code>document.location</code></li>
  <li><code>document.location.href</code></li>
  <li><code>document.documentURI</code></li>
  </ul>
  
  <p>So what's going on here and how am I supposed to get the current page's URL with Javascript?</p>