]> git.0d.be Git - panikweb-esperanzah.git/commitdiff
add rel="noopener" to links opening in new tabs
authorFrédéric Péters <fpeters@0d.be>
Sat, 23 May 2020 19:11:59 +0000 (21:11 +0200)
committerFrédéric Péters <fpeters@0d.be>
Sat, 23 May 2020 19:14:50 +0000 (21:14 +0200)
panikweb_templates/static/js/specifics.js
panikweb_templates/templates/includes/audio.html

index ecca941695c009ac2acf8c874d1d16f0d4310b0c..8e7959ad3ca7944926928d05469ab1eff12e6e4c 100644 (file)
@@ -147,6 +147,7 @@ $(function() {
                                        return false;
                                }else{
                                        $(this).attr('target','_blank');
+                                       $(this).attr('rel', 'noopenenr');
                                        $("#All a, #All area").removeClass('loading');
                                        return true;
                                }
index be00baf08a99ae1cd51822103b748eedda6771d3..3bcb349dfde4c43ea10728f699107938394e7fd2 100644 (file)
@@ -10,7 +10,7 @@
                        ></button>
                <a class="resymbol icon-download big"
                        title="Download file"
-   target="_new" download
+                       target="_new" rel="noopener" download
                        {% if sound|is_format_available:'mp3' %}
                        href="{{ sound|format_url:'mp3' }}"
                        {% else %}