diff --git a/src/core/features/login/pages/site/site.ts b/src/core/features/login/pages/site/site.ts index 6cc44b83f..b607ac068 100644 --- a/src/core/features/login/pages/site/site.ts +++ b/src/core/features/login/pages/site/site.ts @@ -498,7 +498,12 @@ export class CoreLoginSitePage implements OnInit { if (scheme && scheme != 'http' && scheme != 'https') { CoreDomUtils.showErrorModal(Translate.instant('core.errorurlschemeinvalidscheme', { $a: text })); - } else if (CoreLoginHelper.isSiteUrlAllowed(text)) { + + return; + } + + const allowed = await CoreLoginHelper.isSiteUrlAllowed(text); + if (allowed) { // Put the text in the field (if present). this.siteForm.controls.siteUrl.setValue(text);