adobe / aem-core-wcm-components

Standardized components to build websites with AEM.
https://docs.adobe.com/content/help/en/experience-manager-core-components/using/introduction.html
Apache License 2.0
724 stars 737 forks source link

[Teaser V2] Invalid Anchor link with image #2682

Open MantashaNazar opened 4 months ago

MantashaNazar commented 4 months ago

Current Behavior When a teaser has:

1.An image set

then the resulting anchor tag is invalid

Expected behavior/code The component should not create anchor tag (on the image) that is invalid.

Environment

AEM 6.5.16 Core Components 2.22.0 JRE version 11

In Teaser V2 component imageLinkHidden property is not coming . Even is set "True" in the v2 teaser model and we when are try to print this property in html its getting false .We are suspecting because of this getting anchor tag on image in teaser component .

Please find the attached image.

image V2Model crxImageforteaserV2