MOBILE-3086 data: Handle all links in templates

main
Albert Gasset 2019-08-05 10:56:39 +02:00
parent 279bdcb89a
commit 6b3214b87c
1 changed files with 1 additions and 1 deletions

View File

@ -602,7 +602,7 @@ export class AddonModDataHelperProvider {
template = this.domUtils.fixHtml(template);
// Add core-link directive to links.
template = template.replace(/<a ([^>]*href="[^>]*)>/i, (match, attributes) => {
template = template.replace(/<a ([^>]*href="[^>]*)>/ig, (match, attributes) => {
return '<a core-link capture="true" ' + attributes + '>';
});