Skip to content
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

lure: provide a fallback url if branch.io is blocked (or down) #2944

Merged

Conversation

patosullivan
Copy link
Member

Fixes LAND-1047

Apparently branch.io appears on many adblock lists. (see BranchMetrics/web-branch-deep-linking-attribution#538)

We were only returning a lure link if we could successfully create a deep link. We should return the normal/non-branch lure link if we fail to contact branch.io.

Copy link
Member

@jamesacklin jamesacklin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes perfect sense, thank you

@alecananian
Copy link
Contributor

The share URL is falling back to the original URL when the deep link one is undefined: https://github.com/tloncorp/landscape-apps/blob/develop/ui/src/state/lure/lure.ts#L273

Could be enough to just return undefined from the catch? Either way you'd get the same functionality in the end, so not a major issue. Just thought I'd mention it

@patosullivan patosullivan merged commit 1dcd014 into develop Oct 11, 2023
1 check failed
@patosullivan patosullivan deleted the po/land-1047-provide-fallback-if-branchio-blocked branch October 11, 2023 18:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants