mirror of https://github.com/nextcloud/android
Redirect only if url should be redirected
Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
This commit is contained in:
parent
5ace0c2dd4
commit
3cb7949f3f
|
@ -155,8 +155,11 @@ public class ExternalSiteWebView extends FileActivity {
|
|||
|
||||
@Override
|
||||
public boolean shouldOverrideUrlLoading(WebView view, WebResourceRequest request) {
|
||||
DisplayUtils.startLinkIntent(self, request.getUrl());
|
||||
return true;
|
||||
if (!request.isRedirect()) {
|
||||
DisplayUtils.startLinkIntent(self, request.getUrl());
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue