Skip to content

Commit 2064534

Browse files
Cherry-pick FDL fix to 8.9.0 (#8867)
Co-authored-by: Eldhose M Babu <[email protected]>
1 parent ced0a58 commit 2064534

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

FirebaseDynamicLinks/CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# v8.9.0
22
- [fixed] Fixed Shortlink regression involving underscores and dashes introduced in 8.8.0. (#8786)
3-
- [fixed] Reduce memory stress on `WebKit` API. #8847
3+
- [fixed] Reduce memory stress on `WebKit` API. (#8847)
4+
- [fixed] Fixed regression introduced in 8.8.0 that failed to accept link query params after the
5+
FDL domain prefix. It caused the Dynamic Links Quick Start to fail. (#8866)
46

57
# v8.8.0
68
- [fixed] Firebase dynamic links with custom domain will only work if the custom domain has a trailing '/'. (#7087)

FirebaseDynamicLinks/Sources/Utilities/FDLUtilities.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ BOOL FIRDLIsAValidDLWithFDLDomain(NSURL *_Nullable URL) {
248248
// Matches the *.page.link and *.app.goo.gl domains.
249249
matchesRegularExpression =
250250
([urlStr rangeOfString:@"^https?://[a-zA-Z0-9]+((\\.app\\.goo\\.gl)|(\\.page\\.link))((\\/"
251-
@"?\\?link=https?.*)|(\\/[a-zA-Z0-9-_]+)((\\/?\\?.*=.*)?$|$))"
251+
@"?\\?.*link=https?.*)|(\\/[a-zA-Z0-9-_]+)((\\/?\\?.*=.*)?$|$))"
252252
options:NSRegularExpressionSearch]
253253
.location != NSNotFound);
254254

FirebaseDynamicLinks/Tests/Unit/FIRDynamicLinksTest.m

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1378,7 +1378,9 @@ - (void)testHandleUniversalLinkCompletionReturnsYesForValidDDL {
13781378
NSArray<NSString *> *urlStrings = @[
13791379
@"https://some.page.link/test", @"https://some.page.link/test-test",
13801380
@"https://some.page.link/test_test", @"https://some.page.link/test_test-test",
1381-
@"https://some.app.goo.gl/test_test-test"
1381+
@"https://some.app.goo.gl/test_test-test",
1382+
@"https://n8r9f.app.goo.gl/?ibi=com%2Egoogle%2EGCMTestApp%2Edev&amv=0&imv=1%2E0&link=https%3A%2F%2Fwww%2Egoogle%2Ecom",
1383+
@"https://n8r9f.app.goo.gl/?link=https%3A%2F%2Fwww%2Egoogle%2Ecom&ibi=com%2Egoogle%2EGCMTestApp%2Edev&amv=0&imv=1%2E0"
13821384
];
13831385

13841386
for (NSString *urlString in urlStrings) {

0 commit comments

Comments
 (0)