Skip to content

Commit 4e241f5

Browse files
authored
Links to cross-origin destinations are unsafe
When you link to a page on another site using the target="_blank" attribute, you can expose your site to performance and security issues. Adding rel="noopener" or rel="noreferrer" to your target="_blank" links avoids these issues. For more information read https://web.dev/external-anchors-use-rel-noopener/?utm_source=lighthouse&utm_medium=devtools.
1 parent f0db00f commit 4e241f5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/components/Button.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
:href="fullLink"
77
class="gh-button"
88
target="_blank"
9+
rel="noopener"
910
>
1011
<component :is="iconComponentName" />
1112
<slot />
@@ -15,6 +16,7 @@
1516
:href="fullCountLink"
1617
:target="hasCountLink ? '_blank' : null"
1718
class="social-count"
19+
rel="noopener"
1820
>
1921
{{ count | formatNumber }}
2022
</a>

0 commit comments

Comments
 (0)