-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
♻️ refactor(link): rel noopener & title target blank [DS-2509] #737
Conversation
tool/example/heading.ejs
Outdated
@@ -17,7 +17,7 @@ | |||
<% | |||
for (const d of doc) { | |||
%> | |||
<li><a href="<%= d.url %>" target="_blank"><%= d.title %></a></li> | |||
<li><a href="<%= d.url %>" target="_blank" rel="noopener"><%= d.title %></a></li> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pourquoi ne pas utiliser la même méthode ici ?
d7a1932
to
f91d6c2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pareil que Baptiste, quid de l'exemple heading, pourquoi ne pas utiliser la même méthode ?
et suggestion qui ferait sens avec notre utilisation du _blank, rajouter rel external. J'ai mis un suggestion commit
tool/example/decorator.ejs
Outdated
const targetBlankData = () => { | ||
const attr = {}; | ||
attr.target = '_blank'; | ||
attr.rel = 'noopener'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
attr.rel = 'noopener'; | |
attr.rel = 'noopener external'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok
9a54d17
to
14fc4c4
Compare
Ajout de l'attribut rel="noopener" et title="intitulé - nouvelle fenêtre" à tous les liens en target="_blank"