mirror of
https://github.com/nextcloud/android.git
synced 2024-11-22 13:15:35 +03:00
Merge pull request #12655 from nextcloud/redirectCorrectly
Redirect only if url should be redirected
This commit is contained in:
commit
7a29851d69
1 changed files with 5 additions and 2 deletions
|
@ -156,8 +156,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 a new issue