From ed00cefbae41d3c2fa90d6350aa96f7f61bc4c03 Mon Sep 17 00:00:00 2001 From: Dani Palou Date: Wed, 9 Jun 2021 12:31:30 +0200 Subject: [PATCH] MOBILE-3320 url: Fix embedded URLs --- src/addons/mod/url/services/handlers/module.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/addons/mod/url/services/handlers/module.ts b/src/addons/mod/url/services/handlers/module.ts index 9e4cd9571..61d2cd90d 100644 --- a/src/addons/mod/url/services/handlers/module.ts +++ b/src/addons/mod/url/services/handlers/module.ts @@ -89,7 +89,7 @@ export class AddonModUrlModuleHandlerService implements CoreCourseModuleHandler const modal = await CoreDomUtils.showModalLoading(); try { - const shouldOpen = this.shouldOpenLink(module, courseId); + const shouldOpen = await this.shouldOpenLink(module, courseId); if (shouldOpen) { openUrl(module, courseId);