Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormattab <matthieu.aubry@gmail.com>2014-11-27 06:05:39 +0300
committermattab <matthieu.aubry@gmail.com>2014-11-27 06:05:39 +0300
commit9c165f4ce96b96ac0d77d6d86ebf21ca49405f1c (patch)
tree0b1e579cc8fcb281c9d8279138666dfac69e865a /plugins/SEO/templates
parentedae22dc793608cc713ac11baf6cfa5706302c49 (diff)
Fixes #3147 Add rel="noreferrer" to all outgoing links . This works in Firefox so far and only for "left clicks". Not perfect, but hopefully other browsers will implement this in the future, as it's a useful privacy enhancing feature!
Diffstat (limited to 'plugins/SEO/templates')
-rw-r--r--plugins/SEO/templates/getRank.twig4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/SEO/templates/getRank.twig b/plugins/SEO/templates/getRank.twig
index 08839997b3..491e36ea57 100644
--- a/plugins/SEO/templates/getRank.twig
+++ b/plugins/SEO/templates/getRank.twig
@@ -18,14 +18,14 @@
{{ 'General_Error'|translate }}
{% else %}
{% set cleanUrl %}
- <a href="http://{{ urlToRank }}" target="_blank">{{ urlToRank }}</a>
+ <a href="http://{{ urlToRank }}" rel="noreferrer" target="_blank">{{ urlToRank }}</a>
{% endset %}
{{ 'SEO_SEORankingsFor'|translate(cleanUrl)|raw }}
<table cellspacing="2" style="margin:auto;line-height:1.5em;padding-top:10px;">
{% for rank in ranks %}
<tr>
{% set seoLink %}{% if rank.logo_link is defined %}<a class="linkContent" href="?module=Proxy&action=redirect&url={{ rank.logo_link|url_encode }}"
- target="_blank"
+ rel="noreferrer" target="_blank"
{% if rank.logo_tooltip is not empty %}title="{{ rank.logo_tooltip }}"{% endif %}>{% endif %}{% endset %}
{% set majesticLink %}{{ seoLink }}Majestic</a>{% endset %}
<td>{% if rank.logo_link is defined %}{{ seoLink|raw }}{% endif %}<img