title: Android: WebView goback() always reloads the same page for redirection URLs
body: <p>I have implemented my own custom web browser with basic functionalities(with back, forward, refresh and stop buttons). All is working absolutely fine, but it breaks whenever I load redirection url in it, and tries to go back by calling 'webview.goBack()'.  </p>
  
  <p>Lets assume that URL1 redirects to URL2. So, whenever I tries to open URL1, webview automatically redirects to URL2. After loading URL2 completely if I tries to go back to previous page by calling 'webview.goBack', webview will try to load URL1, which again redirects to URL2, and again I'm landing on the same page. </p>
  
  <p>Here is my code:
  'private WebViewClient mWebViewClient = new WebViewClient() {</p>
  
  <pre><code>    public void onPageStarted(WebView view, String url,
              android.graphics.Bitmap favicon) {
          Log.d(TAG, "onPageStarted");
      };
  
      public boolean shouldOverrideUrlLoading(WebView view, String url) {
              Log.d(TAG, "shouldOverrideUrlLoading");
              view.loadUrl(url);
              return true;
      };
  
      public void onPageFinished(WebView view, String url) {
          Log.d(TAG, "onPageFinished");
  
      };
  };'
  </code></pre>
  
  <p>Any help will be highly appreciated. Thank!</p>