Projet

Général

Profil

Actions

Bug #607

ouvert

Le title de l'image-lien HR research reprend son code source

Ajouté par ggallais il y a 17 jours. Mis à jour il y a 17 jours.

Statut:
New
Priorité:
Normal
Assigné à:
-
Catégorie:
-
Début:
15/01/2026
Echéance:
% réalisé:

0%

Temps estimé:
Découvert le:
15/01/2026
Affecte:
Desktop, Mobile
Opquast:
Lot:
Avis équipe:
Passage recette / prod:
à discuter ED:
Non
Environnement:

Description

Sur l'accueil, en bas on a une image avec le log "HR Excellence in Research".

Quand on examine son attribut title, on voit qu'il contient une balise <img>.

C'est le <a> qui récupère la balise image entière en title

Code source en front :


<div class="wp-block-column is-layout-flow wp-block-column-is-layout-flow" style="flex-basis:50%"><div class="wp-block-image is-style-default">
<figure class="alignright size-full is-resized">
 <a href="https://pro.inserm.fr/je-travaille-a-linserm/ressources-humaines/hr-excellence-in-research" 
 data-wpel-link="external" target="_self" rel="nofollow external" 
 title="&lt;img loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;713&quot; height=&quot;483&quot; src=&quot;https://www.inserm.fr/wp-content/uploads/logo-hr-excellence.png&quot; alt=&quot;HR Excellence in Research&quot; class=&quot;wp-image-129437&quot; style=&quot;width:178px;height:121px&quot; srcset=&quot;https://inserm.b-cdn.net/wp-content/uploads/logo-hr-excellence.png.webp 713w, https://inserm.b-cdn.net/wp-content/uploads/logo-hr-excellence-300x203.png.webp 300w, https://inserm.b-cdn.net/wp-content/uploads/logo-hr-excellence-150x102.png.webp 150w&quot; sizes=&quot;auto, (max-width: 713px) 100vw, 713px&quot;&gt; (lien externe)">
 <img  loading="lazy" decoding="async" width="713" height="483"  
  src="https://inserm.b-cdn.net/wp-content/uploads/logo-hr-excellence.png.webp"  
  alt="HR Excellence in Research" class="wp-image-129437" 
  style="width:178px;height:121px" 
  srcset="https://inserm.b-cdn.net/wp-content/uploads/logo-hr-excellence.png.webp 713w, https://inserm.b-cdn.net/wp-content/uploads/logo-hr-excellence-300x203.png.webp 300w, https://inserm.b-cdn.net/wp-content/uploads/logo-hr-excellence-150x102.png.webp 150w" sizes="auto, (max-width: 713px) 100vw, 713px">
 </a>
</figure>
</div></div>
</div>

En back :

<!-- wp:column {"width":"50%"} -->
<div class="wp-block-column" style="flex-basis:50%"><!-- wp:image {"lightbox":{"enabled":false},"id":129437,"width":"178px","height":"121px","sizeSlug":"full","linkDestination":"custom","align":"right","className":"is-style-default","style":{"color":[]},"blockVisibility":{"controlSets":[{"id":1,"enable":true,"controls":{"userRole":{"visibilityByRole":"public","ruleSets":[{"enable":true,"rules":[{"field":"users","operator":"any","value":[]}]}]},"screenSize":{"hideOnScreenSize":{"small":false,"medium":false}}}}]}} -->
<figure class="wp-block-image alignright size-full is-resized is-style-default"><a href="https://pro.inserm.fr/je-travaille-a-linserm/ressources-humaines/hr-excellence-in-research"><img src="https://www.inserm.fr/wp-content/uploads/logo-hr-excellence.png" alt="HR Excellence in Research" class="wp-image-129437" style="width:178px;height:121px"/></a></figure>
<!-- /wp:image --></div>
<!-- /wp:column --></div>

Fichiers

hrresearch.jpg (122 ko) hrresearch.jpg ggallais, 15/01/2026 09:55

Mis à jour par ggallais il y a 17 jours

Explication : le plugin WP external links traite les liens externes de la façon suivante :

prend l'intérieur du <a> et met le en title, en ajoutant (lien externe) après

Donc ça prend l'intérieur du <a>... qui ici est une <img>

Solutions :

  • OU mettre le lien précis en exception dans Wp Eternal links
  • OU regarder pour mettre une exception pour tous les liens images
Actions

Formats disponibles : Atom PDF