From 6b3214b87c166a343e777483db224d116e2fd9b1 Mon Sep 17 00:00:00 2001 From: Albert Gasset Date: Mon, 5 Aug 2019 10:56:39 +0200 Subject: [PATCH] MOBILE-3086 data: Handle all links in templates --- src/addon/mod/data/providers/helper.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/addon/mod/data/providers/helper.ts b/src/addon/mod/data/providers/helper.ts index a7626f4f7..d5be5fa19 100644 --- a/src/addon/mod/data/providers/helper.ts +++ b/src/addon/mod/data/providers/helper.ts @@ -602,7 +602,7 @@ export class AddonModDataHelperProvider { template = this.domUtils.fixHtml(template); // Add core-link directive to links. - template = template.replace(/]*href="[^>]*)>/i, (match, attributes) => { + template = template.replace(/]*href="[^>]*)>/ig, (match, attributes) => { return ''; });