From 21e2b57300c13625263aac4c1208033cad846612 Mon Sep 17 00:00:00 2001 From: Nipun Singh <88689850+nsingh-branch@users.noreply.github.com> Date: Tue, 20 Aug 2024 13:28:58 -0700 Subject: [PATCH] [SDK-2475] Fix for BNCURLFilter's regex being set as external_intent_uri (#1419) * Fix for some URI scheme bugs * Remove other code change * Fixed space --- Sources/BranchSDK/Branch.m | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Sources/BranchSDK/Branch.m b/Sources/BranchSDK/Branch.m index f04251466..69aac1ee2 100644 --- a/Sources/BranchSDK/Branch.m +++ b/Sources/BranchSDK/Branch.m @@ -690,8 +690,10 @@ - (BOOL)handleDeepLink:(NSURL *)url sceneIdentifier:(NSString *)sceneIdentifier } if (pattern) { self.preferenceHelper.dropURLOpen = YES; - self.preferenceHelper.externalIntentURI = pattern; - self.preferenceHelper.referringURL = pattern; + + NSString *urlString = [url absoluteString]; + self.preferenceHelper.externalIntentURI = urlString; + self.preferenceHelper.referringURL = urlString; [self initUserSessionAndCallCallback:YES sceneIdentifier:sceneIdentifier urlString:nil reset:YES]; return NO;