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 --> <!-- IF websiteName -->
<span>[[user:website]]</span> <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 --> <!-- ENDIF websiteName -->
<!-- IF location --> <!-- IF location -->

@ -55,7 +55,7 @@
<h4>[[login:alternative_logins]]</h4> <h4>[[login:alternative_logins]]</h4>
<ul class="alt-logins"> <ul class="alt-logins">
<!-- BEGIN authentication --> <!-- 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 --> <!-- END authentication -->
</ul> </ul>
</div> </div>

@ -7,7 +7,7 @@
[[notifications:outgoing_link_message, {title}]] [[notifications:outgoing_link_message, {title}]]
</h3> </h3>
<p> <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> <a id="return-btn" href="#" class="btn btn-lg btn-warning">[[notifications:return_to, {title}]]</a>
</p> </p>
</div> </div>

@ -68,7 +68,7 @@
<h4>[[register:alternative_registration]]</h4> <h4>[[register:alternative_registration]]</h4>
<ul class="alt-logins"> <ul class="alt-logins">
<!-- BEGIN authentication --> <!-- 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 --> <!-- END authentication -->
</ul> </ul>
</div> </div>

Loading…
Cancel
Save