Merge pull request #2039 from albertgasset/MOBILE-3086

MOBILE-3086 data: Handle all links in templates
main
Juan Leyva 2019-08-05 11:11:22 +02:00 committed by GitHub
commit adbd9f6ffb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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 + '>';
});