Commit f171090a authored by hynek's avatar hynek 🤤
Browse files

fix(templates): secure external links with target="_blank"

add `rel="noreferrer noopener"`
parent cfef5a66
......@@ -8,7 +8,7 @@
</div>
<div class="col-10">
<p>
{{ object.citation }}{% if object.url %}, <a href="{{ object.url }}" target="_blank">{{ object.url }}</a>{% endif %}
{{ object.citation }}{% if object.url %}, <a href="{{ object.url }}" target="_blank" rel="noreferrer noopener">{{ object.url }}</a>{% endif %}
</p>
</div>
</div>
......
......@@ -27,7 +27,7 @@
{% if user.external_profile %}
<p>{% trans "External Profile" %}: <a href="{{ user.external_profile }}" target="_blank">{{ user.external_profile }}</a></p>
<p>{% trans "External Profile" %}: <a href="{{ user.external_profile }}" target="_blank" rel="noreferrer noopener">{{ user.external_profile }}</a></p>
{% endif %}
......
......@@ -8,7 +8,7 @@
</a>
</div>
<div class="col-md-auto">
<a href="https://www.dfg.de" target="_blank">
<a href="https://www.dfg.de" target="_blank" rel="noreferrer noopener">
<img class="footer-logo" src="{% static 'images/dfg-logo.svg' %}" />
</a>
</div>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment