Add rel=noopener to external QA links

This commit is contained in:
SilentSpike
2020-02-15 12:39:23 +00:00
parent af0e37f7c5
commit 1e544f64fb
2 changed files with 3 additions and 1 deletions
+2 -1
View File
@@ -24,7 +24,8 @@ export function uiViewOnKeepRight() {
.append('a')
.attr('class', 'view-on-keepRight')
.attr('target', '_blank')
.attr('href', function(d) { return d; })
.attr('rel', 'noopener') // security measure
.attr('href', d => d)
.call(svgIcon('#iD-icon-out-link', 'inline'));
linkEnter
+1
View File
@@ -24,6 +24,7 @@ export function uiViewOnOsmose() {
.append('a')
.attr('class', 'view-on-osmose')
.attr('target', '_blank')
.attr('rel', 'noopener') // security measure
.attr('href', d => d)
.call(svgIcon('#iD-icon-out-link', 'inline'));