Skip to content

Commit d5b4766

Browse files
committed
Make links open in a new tab
1 parent f773577 commit d5b4766

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/components/LicenseText.vue

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,8 @@ export default {
8787
const creatorAttrs = { property: 'cc:attributionName' }
8888
if (this.isCreatorLink) {
8989
creatorAttrs.href = this.creatorProfileUrl
90-
creatorAttrs.rel = 'cc:attributionURL'
90+
creatorAttrs.rel = 'cc:attributionURL noopener noreferrer'
91+
creatorAttrs.target = '_blank'
9192
}
9293
return creatorAttrs
9394
},
@@ -121,7 +122,8 @@ export default {
121122
}
122123
if (workUrl) {
123124
workAttrs.href = workUrl
124-
workAttrs.rel = 'cc:attributionURL'
125+
workAttrs.rel = 'cc:attributionURL noopener noreferrer'
126+
workAttrs.target = '_blank'
125127
}
126128
return workAttrs
127129
},

0 commit comments

Comments
 (0)