handle redirects in webview