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

Universal links: If we don't match a URL, pop back to Safari #12575

Merged
merged 2 commits into from
Sep 30, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion RELEASE-NOTES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Sign In With Apple: if the Apple ID has been disconnected from the WordPress app, log out the account.
* Sign In With Apple: if the Apple ID has been disconnected from the WordPress app, log out the account on app launch.
* Dark Mode: General improvements

* Universal links: Pass back to Safari if we can't handle a URL.

13.3
-----
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,12 @@ struct UniversalLinkRouter {
trackDeepLink(matchCount: matches.count, url: url)
}

if matches.isEmpty {
UIApplication.shared.open(url,
options: [:],
completionHandler: nil)
}

for matchedRoute in matches {
matchedRoute.action.perform(matchedRoute.values, source: source)
}
Expand Down