Skip to content

Commit

Permalink
Add rel="noopener" to social links
Browse files Browse the repository at this point in the history
To prevent the new page from being able to access the window.opener property and ensures it runs in a separate process.
  • Loading branch information
tomdiggle committed Apr 19, 2020
1 parent 90f162c commit 4934c6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/components/common/social-links.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<ul class="socialLinks socialLinks--alt">
{{#each social_media}}
<li class="socialLinks-item">
<a class="icon icon--{{display_name}}" href="{{url}}" target="_blank">
<a class="icon icon--{{display_name}}" href="{{url}}" target="_blank" rel="noopener">
<svg><use xlink:href="#icon-{{display_name}}" /></svg>
</a>
</li>
Expand Down

0 comments on commit 4934c6b

Please sign in to comment.