Skip to content
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

Merged
merged 3 commits into from
Nov 6, 2023

Conversation

keryanS
Copy link
Contributor

@keryanS keryanS commented Aug 23, 2023

Ajout de l'attribut rel="noopener" et title="intitulé - nouvelle fenêtre" à tous les liens en target="_blank"

  • correction tuile avec lien externe

@keryanS keryanS added the évolution Nouvelle fonctionnalité ou requête label Aug 23, 2023
@keryanS keryanS added this to the 1.11.0 milestone Aug 23, 2023
@keryanS keryanS self-assigned this Aug 23, 2023
@keryanS keryanS changed the title refactor(link): rel noopener & title target blank + [DS-2509] refactor(link): rel noopener & title target blank [DS-2509] Aug 23, 2023
@@ -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>
Copy link
Contributor

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 ?

Copy link
Contributor

@lab9fr lab9fr left a 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

const targetBlankData = () => {
const attr = {};
attr.target = '_blank';
attr.rel = 'noopener';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
attr.rel = 'noopener';
attr.rel = 'noopener external';

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

@lab9fr lab9fr added à faire and removed à valider labels Sep 8, 2023
@keryanS keryanS requested a review from lab9fr September 11, 2023 13:26
@keryanS keryanS changed the title refactor(link): rel noopener & title target blank [DS-2509] ♻️ refactor(link): rel noopener & title target blank [DS-2509] Sep 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maj 1.10.0 Prêt évolution Nouvelle fonctionnalité ou requête
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants