From a22b8043b45b0a5c2859afff90d968300b437c93 Mon Sep 17 00:00:00 2001 From: Matt Burke Date: Tue, 6 Nov 2018 22:53:48 -0500 Subject: Add rel=noopener to target=_blank links From https://developers.google.com/web/tools/lighthouse/audits/noopener: - new pages will run in separate processes, avoiding any performance intermingling impacts - new pages won't have access to current page's window object via JavaScript --- .../views/themes/material/Entry/entry.html.twig | 18 +++++++++--------- .../Resources/views/themes/material/layout.html.twig | 2 +- 2 files changed, 10 insertions(+), 10 deletions(-) (limited to 'src/Wallabag/CoreBundle/Resources/views/themes/material') diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entry.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entry.html.twig index 7484d53b..9ae6e73e 100644 --- a/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entry.html.twig +++ b/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entry.html.twig @@ -46,7 +46,7 @@
  • - + link {{ 'entry.view.left_menu.view_original_article'|trans }} @@ -127,42 +127,42 @@ {% endif %} {% if craue_setting('share_twitter') %}
  • - + twitter
  • {% endif %} {% if craue_setting('share_shaarli') %}
  • - + shaarli
  • {% endif %} {% if craue_setting('share_scuttle') %}
  • - + scuttle
  • {% endif %} {% if craue_setting('share_diaspora') %}
  • - + diaspora*
  • {% endif %} {% if craue_setting('share_unmark') %}
  • - + unmark.it
  • {% endif %} {% if craue_setting('carrot') %}
  • - + Carrot
  • @@ -251,7 +251,7 @@ {% endif %}
  • link - + {{ entry.domainName|removeWww }}
  • @@ -262,7 +262,7 @@ {% if entry.originUrl is not empty %}
  • launch - + {{ entry.originUrl|striptags|removeSchemeAndWww|truncate(32) }}
  • diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/material/layout.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/material/layout.html.twig index f0012ad9..052a8c01 100644 --- a/src/Wallabag/CoreBundle/Resources/views/themes/material/layout.html.twig +++ b/src/Wallabag/CoreBundle/Resources/views/themes/material/layout.html.twig @@ -143,7 +143,7 @@
    -- cgit v1.2.3