hotfix use custom url scheme to open links if provided

This commit is contained in:
JanNiklas Grabowski
2023-12-22 12:25:59 +01:00
parent 59ee43ed5c
commit 5decccf6cb
18 changed files with 106 additions and 22 deletions
@@ -355,7 +355,9 @@ NSString *const kMXKWebViewViewControllerJavaScriptEnableLog =
{
if (navigationAction.navigationType == WKNavigationTypeLinkActivated) {
// bwi: clicked links should be opened in system browser
[[UIApplication sharedApplication] openURL:navigationAction.request.URL options:@{} completionHandler:nil];
if (navigationAction.request.URL) {
[[UIApplication sharedApplication] vc_open:navigationAction.request.URL completionHandler:nil];
}
decisionHandler(WKNavigationActionPolicyCancel);
} else {
// bwi: Open url in webview