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);