-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Dynamic links] Shortlink is not handled in 8.8.0 #8786
Comments
I found a few problems with this issue:
|
taking a look...will keep you posted |
I was not able to reproduce this issue. Do you mind providing a sample url that you are using for testing? I've tried reproducing this issue on a sample app and it was working as expected. I've added a unit test to check this specifically in PR : #8793 and the unit tests are green. Also we already have a unit test in place to check the link format whether it will match the regex here : https://github.com/firebase/firebase-ios-sdk/blob/master/FirebaseDynamicLinks/Tests/Unit/FIRDynamicLinksTest.m#L1109 If this issue is still reproducible on your end, would be great if you can provide us a sample app (use the Dynamic Links Quick Start App : https://github.com/firebase/quickstart-ios/tree/master/dynamiclinks) along with a video on reproducing the issue as it will help us to reproduce the issue on our end and to come up with a fix if required. |
I did a little more investigation and it appears to be failing when the link includes a I have tested the regex using the above example and it is failing when the |
The test in #8793 still passes for me if I change line 1378 to |
Could the issue be related to a non-ASCII |
@paulb777 in the above comment, we tried with the long link...we need to try with short link ie. https://foo.page.link/test-test which going to be failing since the regex is not expecting '-' and/or '_' in the short FDL identifier. This happens when user manually creates the short link with the above characters. I'll do a quick fix and update the PR here. |
Added support for '_' and '-' in PR : #8793 Also added unit test cases for the same. |
Thanks for looking into it 😄 |
The PR is merged and the fix should be available in 8.9.0. Closing this bug for now. |
[REQUIRED] Step 1: Describe your environment
CocoaPods
[REQUIRED] Step 2: Describe the problem
Steps to reproduce:
Try to use
DynamicLinks.dynamicLinks().handleUniversalLink(url)
on a shortlink for a Firebase generated DynamicLink.Links of the format
https://*.page.link/test
do not match the new regex that was implemented in this commit 85864c6Full links of the format
https://*.page.link/?link=https://google.com/test
do work correctly.They are working correctly in 8.7.0.
The text was updated successfully, but these errors were encountered: