Skip to content

Commit

Permalink
Merge pull request #12655 from nextcloud/redirectCorrectly
Browse files Browse the repository at this point in the history
Redirect only if url should be redirected
  • Loading branch information
tobiasKaminsky authored Mar 14, 2024
2 parents f67639b + 2456369 commit 7a29851
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,11 @@ public void onReceivedError(WebView view, WebResourceRequest request, WebResourc

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

Expand Down

0 comments on commit 7a29851

Please sign in to comment.