location.href WebView Android Studio

//Override the WebView shouldOverrideUrlLoading, like this:

myWebView.setWebViewClient(new WebViewClient() {
        public boolean shouldOverrideUrlLoading(WebView view, String url) {
            view.loadUrl(url);
            return true;
        }
    });
QP2