Skip to content

Commit

Permalink
Merge pull request #1665 from nextcloud/open-links-in-browser
Browse files Browse the repository at this point in the history
Open links with target="_blank" in the browser
  • Loading branch information
Ivansss committed May 21, 2024
2 parents 2b65f38 + 8b7f9c8 commit 5f2a73a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion NextcloudTalk/AuthenticationViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,13 @@ - (void)webView:(WKWebView *)webView decidePolicyForNavigationAction:(WKNavigati
decisionHandler(WKNavigationActionPolicyCancel);
return;
}


if (navigationAction.targetFrame == nil) {
[NCUtils openLinkInBrowserWithLink:url.absoluteString];
decisionHandler(WKNavigationActionPolicyCancel);
return;
}

decisionHandler(WKNavigationActionPolicyAllow);
}

Expand Down

0 comments on commit 5f2a73a

Please sign in to comment.