From 6dadd7b9a64697ad7e63841a520164facd477317 Mon Sep 17 00:00:00 2001 From: Dani Palou Date: Wed, 30 Mar 2022 09:38:33 +0200 Subject: [PATCH] MOBILE-3833 core: Fix handle links with URL scheme --- .../features/contentlinks/services/contentlinks-helper.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/core/features/contentlinks/services/contentlinks-helper.ts b/src/core/features/contentlinks/services/contentlinks-helper.ts index 8c5ccd06c..e4d6379dd 100644 --- a/src/core/features/contentlinks/services/contentlinks-helper.ts +++ b/src/core/features/contentlinks/services/contentlinks-helper.ts @@ -21,6 +21,7 @@ import { makeSingleton, Translate } from '@singletons'; import { CoreNavigator } from '@services/navigator'; import { Params } from '@angular/router'; import { CoreContentLinksChooseSiteModalComponent } from '../components/choose-site-modal/choose-site-modal'; +import { CoreCustomURLSchemes } from '@services/urlschemes'; /** * Service that provides some features regarding content links. @@ -138,6 +139,12 @@ export class CoreContentLinksHelperProvider { openBrowserRoot?: boolean, ): Promise { try { + if (CoreCustomURLSchemes.isCustomURL(url)) { + await CoreCustomURLSchemes.handleCustomURL(url); + + return true; + } + if (checkRoot) { const data = await CoreSites.isStoredRootURL(url, username);