add noreferrer and noopener to anchors containing external links

main
Julian Lam 7 years ago
parent c63cda5d6a
commit 2da45f5a34

@ -70,7 +70,7 @@
<!-- IF websiteName -->
<span>[[user:website]]</span>
<strong><a href="{websiteLink}" rel="nofollow">{websiteName}</a></strong>
<strong><a href="{websiteLink}" rel="nofollow noopener noreferrer">{websiteName}</a></strong>
<!-- ENDIF websiteName -->
<!-- IF location -->

@ -55,7 +55,7 @@
<h4>[[login:alternative_logins]]</h4>
<ul class="alt-logins">
<!-- BEGIN authentication -->
<li class="{authentication.name}"><a rel="nofollow" target="_top" href="{config.relative_path}{authentication.url}"><i class="fa {authentication.icon} fa-3x"></i></a></li>
<li class="{authentication.name}"><a rel="nofollow noopener noreferrer" target="_top" href="{config.relative_path}{authentication.url}"><i class="fa {authentication.icon} fa-3x"></i></a></li>
<!-- END authentication -->
</ul>
</div>

@ -7,7 +7,7 @@
[[notifications:outgoing_link_message, {title}]]
</h3>
<p>
<a href="{outgoing}" rel="nofollow" class="btn btn-primary btn-lg">[[notifications:continue_to, {outgoing}]]</a>
<a href="{outgoing}" rel="nofollow noopener noreferrer" class="btn btn-primary btn-lg">[[notifications:continue_to, {outgoing}]]</a>
<a id="return-btn" href="#" class="btn btn-lg btn-warning">[[notifications:return_to, {title}]]</a>
</p>
</div>

@ -68,7 +68,7 @@
<h4>[[register:alternative_registration]]</h4>
<ul class="alt-logins">
<!-- BEGIN authentication -->
<li class="{authentication.name}"><a rel="nofollow" target="_top" href="{config.relative_path}{authentication.url}"><i class="fa {authentication.icon} fa-3x"></i></i></a></li>
<li class="{authentication.name}"><a rel="nofollow noopener noreferrer" target="_top" href="{config.relative_path}{authentication.url}"><i class="fa {authentication.icon} fa-3x"></i></i></a></li>
<!-- END authentication -->
</ul>
</div>

Loading…
Cancel
Save