Merge pull request #2039 from albertgasset/MOBILE-3086
MOBILE-3086 data: Handle all links in templates
This commit is contained in:
commit
adbd9f6ffb
@ -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 + '>';
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user