MOBILE-3833 core: Fix handle links with URL scheme
parent
ca25ad0420
commit
6dadd7b9a6
|
@ -21,6 +21,7 @@ import { makeSingleton, Translate } from '@singletons';
|
||||||
import { CoreNavigator } from '@services/navigator';
|
import { CoreNavigator } from '@services/navigator';
|
||||||
import { Params } from '@angular/router';
|
import { Params } from '@angular/router';
|
||||||
import { CoreContentLinksChooseSiteModalComponent } from '../components/choose-site-modal/choose-site-modal';
|
import { CoreContentLinksChooseSiteModalComponent } from '../components/choose-site-modal/choose-site-modal';
|
||||||
|
import { CoreCustomURLSchemes } from '@services/urlschemes';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Service that provides some features regarding content links.
|
* Service that provides some features regarding content links.
|
||||||
|
@ -138,6 +139,12 @@ export class CoreContentLinksHelperProvider {
|
||||||
openBrowserRoot?: boolean,
|
openBrowserRoot?: boolean,
|
||||||
): Promise<boolean> {
|
): Promise<boolean> {
|
||||||
try {
|
try {
|
||||||
|
if (CoreCustomURLSchemes.isCustomURL(url)) {
|
||||||
|
await CoreCustomURLSchemes.handleCustomURL(url);
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
if (checkRoot) {
|
if (checkRoot) {
|
||||||
const data = await CoreSites.isStoredRootURL(url, username);
|
const data = await CoreSites.isStoredRootURL(url, username);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue