Merge pull request #12655 from nextcloud/redirectCorrectly

Redirect only if url should be redirected
This commit is contained in:
Tobias Kaminsky 2024-03-14 07:07:10 +01:00 committed by GitHub
commit 7a29851d69
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;
}
});