MOBILE-3833 core: Fix handle links with URL scheme

main
Dani Palou 2022-03-30 09:38:33 +02:00
parent ca25ad0420
commit 6dadd7b9a6
1 changed files with 7 additions and 0 deletions

View File

@ -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<boolean> {
try {
if (CoreCustomURLSchemes.isCustomURL(url)) {
await CoreCustomURLSchemes.handleCustomURL(url);
return true;
}
if (checkRoot) {
const data = await CoreSites.isStoredRootURL(url, username);