From 5d393c852622dbfa1651d476af7f4ec38074893d Mon Sep 17 00:00:00 2001 From: lumaa-dev Date: Sun, 17 Nov 2024 15:26:24 +0100 Subject: [PATCH] Fixed URL navigation --- Bubble/Data/URLNavigator.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Bubble/Data/URLNavigator.swift b/Bubble/Data/URLNavigator.swift index bea4e60..0bd137f 100644 --- a/Bubble/Data/URLNavigator.swift +++ b/Bubble/Data/URLNavigator.swift @@ -65,12 +65,13 @@ extension Navigator { return OpenURLAction.Result.handled } } else { + guard uni else { return .discarded } self.presentedSheet = .safari(url: url) } } else { print("clicked isn't handled properly") - if url.absoluteString.starts(with: /[a-z]+:\/\//) { + if url.absoluteString.starts(with: /[a-z]+:\/\//) && !url.absoluteString.starts(with: /http(s)?:\/\//) { print("catched 3rd-party SCHEME") #if !WIDGET UIApplication.shared.open(url)