diff options
author | Matt Burke <burkemw3@gmail.com> | 2018-11-06 22:53:48 -0500 |
---|---|---|
committer | Matt Burke <burkemw3@gmail.com> | 2018-11-07 20:34:54 -0500 |
commit | a22b8043b45b0a5c2859afff90d968300b437c93 (patch) | |
tree | c31b8c80d74b02d16988d3cd10e852339a4cd269 /src/Wallabag/CoreBundle/Resources/views/themes/common/Entry | |
parent | 078d54411b13e988631821bb15ebc77c252c9601 (diff) | |
download | wallabag-a22b8043b45b0a5c2859afff90d968300b437c93.tar.gz wallabag-a22b8043b45b0a5c2859afff90d968300b437c93.tar.zst wallabag-a22b8043b45b0a5c2859afff90d968300b437c93.zip |
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
Diffstat (limited to 'src/Wallabag/CoreBundle/Resources/views/themes/common/Entry')
-rw-r--r-- | src/Wallabag/CoreBundle/Resources/views/themes/common/Entry/share.html.twig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/common/Entry/share.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/common/Entry/share.html.twig index b9fcc005..e1c7aad9 100644 --- a/src/Wallabag/CoreBundle/Resources/views/themes/common/Entry/share.html.twig +++ b/src/Wallabag/CoreBundle/Resources/views/themes/common/Entry/share.html.twig | |||
@@ -27,7 +27,7 @@ | |||
27 | <body> | 27 | <body> |
28 | <header class="block"> | 28 | <header class="block"> |
29 | <h1>{{ entry.title|e|raw }}</h1> | 29 | <h1>{{ entry.title|e|raw }}</h1> |
30 | <a href="{{ entry.url|e }}" target="_blank" title="{{ 'entry.view.original_article'|trans }} : {{ entry.title|e|raw }}" class="tool">{{ entry.domainName|removeWww }}</a> | 30 | <a href="{{ entry.url|e }}" target="_blank" rel="noopener" title="{{ 'entry.view.original_article'|trans }} : {{ entry.title|e|raw }}" class="tool">{{ entry.domainName|removeWww }}</a> |
31 | <p class="shared-by">{{ "entry.public.shared_by_wallabag"|trans({'%wallabag_instance%': url('homepage'), '%username%': entry.user.username})|raw }}.</p> | 31 | <p class="shared-by">{{ "entry.public.shared_by_wallabag"|trans({'%wallabag_instance%': url('homepage'), '%username%': entry.user.username})|raw }}.</p> |
32 | {% if entry.previewPicture is not null %} | 32 | {% if entry.previewPicture is not null %} |
33 | <img class="preview" src="{{ entry.previewPicture }}" alt="{{ entry.title|striptags|e('html_attr') }}" /> | 33 | <img class="preview" src="{{ entry.previewPicture }}" alt="{{ entry.title|striptags|e('html_attr') }}" /> |