We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e3517d0 commit 5b7a934Copy full SHA for 5b7a934
WooCommerce/Classes/Authentication/Navigation Exceptions/JetpackConnectionWebViewModel.swift
@@ -27,7 +27,14 @@ final class JetpackConnectionWebViewModel: AuthenticatedWebViewModel {
27
}
28
29
func handleRedirect(for url: URL?) {
30
- // No-op
+ guard let path = url?.absoluteString else {
31
+ return
32
+ }
33
+ // When the web view navigates to the site address or Jetpack plans page,
34
+ // we can assume that the setup has completed.
35
+ if path.hasPrefix(siteURL) || path.hasPrefix(Constants.plansPage) {
36
+ handleSetupCompletion()
37
38
39
40
func decidePolicy(for navigationURL: URL) async -> WKNavigationActionPolicy {
0 commit comments