mirror of
https://github.com/jupyter/notebook.git
synced 2024-12-21 04:10:17 +08:00
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:
parent
cfdd431a4b
commit
e0f3060629
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user