@@ -456,26 +456,7 @@ extension WordPressAppDelegate {
456456 return
457457 }
458458
459- // Don't try to resolve `apps.wordpress.com` URLs
460- if url. host == " apps.wordpress.com " {
461- UniversalLinkRouter . shared. handle ( url: url)
462- return
463- }
464-
465- // WordPress.com News links (i.e. http://en.blog.wordpress.com/2025/11/24/managed-vs-shared-wordpress-hosting/),
466- // which can be parsed by the app, redirect to links (i.e. https://wordpress.com/blog/2025/11/24/managed-vs-shared-wordpress-hosting/)
467- // that are not parsable by the app.
468- // Since we can handle post links in blog.wordpress.com, we don't need to resolve them.
469- if url. host? . hasSuffix ( " blog.wordpress.com " ) == true , UniversalLinkRouter . shared. canHandle ( url: url) {
470- UniversalLinkRouter . shared. handle ( url: url)
471- return
472- }
473-
474- trackDeepLink ( for: url) { url in
475- DispatchQueue . main. async {
476- UniversalLinkRouter . shared. handle ( url: url)
477- }
478- }
459+ UniversalLinkRouter . shared. handle ( url: url)
479460 }
480461
481462 @objc func configureWordPressComApi( ) {
@@ -485,26 +466,6 @@ extension WordPressAppDelegate {
485466 }
486467}
487468
488- // MARK: - Deep Link Handling
489-
490- extension WordPressAppDelegate {
491-
492- private func trackDeepLink( for url: URL , completion: @escaping ( ( URL ) -> Void ) ) {
493- let task = URLSession . shared. dataTask ( with: url) { _, response, error in
494- guard let url = response? . url else {
495- wpAssertionFailure (
496- " Received a deep link response without URL attached. " ,
497- userInfo: [ " response " : response ?? " no response " ]
498- )
499- return
500- }
501-
502- completion ( url)
503- }
504- task. resume ( )
505- }
506- }
507-
508469// MARK: - Helpers
509470
510471extension WordPressAppDelegate {
0 commit comments