Add rel=noreferrer to helplink URLs as sending the referrer link is unnecessary

Currently, links that go to external sites are getting the referrer
url, which for things like tmpnb, is a secret. This avoids us sending
along unnecessary information to possibly third party sites.
This commit is contained in:
Christopher Wilcox 2015-08-13 14:23:26 -07:00
parent cfdd431a4b
commit e0f3060629

View File

@ -267,7 +267,7 @@ data-notebook-path="{{notebook_path}}"
{% for helplinks in sections %} {% for helplinks in sections %}
{% for link in helplinks %} {% for link in helplinks %}
<li><a href="{{link[0]}}" {{'target="_blank" title="Opens in a new window"' if link[2]}}> <li><a rel="noreferrer" href="{{link[0]}}" {{'target="_blank" title="Opens in a new window"' if link[2]}}>
{{'<i class="fa fa-external-link menu-icon pull-right"></i>' if link[2]}} {{'<i class="fa fa-external-link menu-icon pull-right"></i>' if link[2]}}
{{link[1]}} {{link[1]}}
</a></li> </a></li>