From: Frédéric Péters Date: Sat, 23 May 2020 19:11:59 +0000 (+0200) Subject: add rel="noopener" to links opening in new tabs X-Git-Tag: v2021~167 X-Git-Url: https://git.0d.be/?p=panikweb.git;a=commitdiff_plain;h=3baf54bfeebe69031ffb9a47cbb5ac2401619644 add rel="noopener" to links opening in new tabs --- diff --git a/panikweb_templates/static/js/specifics.js b/panikweb_templates/static/js/specifics.js index 32a7f17..b679328 100644 --- a/panikweb_templates/static/js/specifics.js +++ b/panikweb_templates/static/js/specifics.js @@ -135,6 +135,7 @@ $(function() { return false; }else{ $(this).attr('target','_blank'); + $(this).attr('rel', 'noopenenr'); $("#All a, #All area").removeClass('loading'); return true; } diff --git a/panikweb_templates/templates/includes/audio.html b/panikweb_templates/templates/includes/audio.html index e23cce2..673452d 100644 --- a/panikweb_templates/templates/includes/audio.html +++ b/panikweb_templates/templates/includes/audio.html @@ -28,12 +28,12 @@ >{% trans "Download file" %}