title: Android WebView, how to handle redirects in app instead of opening a browser
body: <p>So right now in my app the URL I'm accessing has a redirect, and when this happens the WebView will open a new browser, instead of staying in my app. Is there a way I can change the settings so the View will redirect to the URL like normal, but stay in my app instead of opening a new browser?</p>
  
  <p>Edit:</p>
  
  <p>I want the redirecting URL, I just don't know how to create it, so the only way to get to that URL is through one that will cause a redirect to the one I want. </p>
  
  <p>For example: When you go here: <a href="http://www.amazon.com/gp/aw/s/ref=is_box_/k=9780735622777" rel="noreferrer">http://www.amazon.com/gp/aw/s/ref=is_box_/k=9780735622777</a> notice how it will redirect the URL to the actual product. In my app, if I open it in a new browser, it will do that just fine, however if I keep it in my app with a WebView, it will show up as though it's doing a search for k=9780735622777, like this: <a href="http://www.amazon.com/gp/aw/s/ref=is_s_?k=k%3D9780735622777&amp;x=0&amp;y=0" rel="noreferrer">http://www.amazon.com/gp/aw/s/ref=is_s_?k=k%3D9780735622777&amp;x=0&amp;y=0</a> . OR, it will open the view in the browser and show what is appropriate. However, I want to keep everything in my app.</p>