title: WebView back history without redirects
body: <p>I implemented android webview and onKeyDown method for back key. (It implements <code>webview.goBack();</code>)</p>
  
  <p>My problem is exactly similar to the question in this post below (no answers there)</p>
  
  <p><a href="https://stackoverflow.com/questions/14390908/how-to-control-the-android-webview-history-back-stack">How to control the Android WebView history/back stack?</a></p>
  
  <p>PROBLEM - When I press back button, <code>webview</code> selects the previous URL, but if that URL was actually a redirect, it goes into this vicious cycle/loop. If you look at chrome or stock browser it correctly handles the back without going back to the redirects.</p>
  
  <p>How can this be solved?</p>
  
  <p>Example: go to gap.com. Then select "My Gap Credit Card". This opens a redirect link and then the final page. Now when I click back, it never goes to Gap.com home page. </p>
  
  <p>Any suggestions...</p>
  
  <p>Additional Information: I did implement the <code>shouldOverrideUrlLoading</code>. If I remove that method, it seems to work fine but with this method it does not...</p>