aem-core-wcm-components icon indicating copy to clipboard operation
aem-core-wcm-components copied to clipboard

Page List shown as Teasers repeats HTML ID on list items

Open HitmanInWis opened this issue 1 year ago • 0 comments

Bug present as of version: 2.24.7-SNAPSHOT

When the List component is rendered as Teaser resources, all items referencing internal AEM pages are rendered with the same ID as specified on the parent List component.

This can be fixed by updating com.adobe.cq.wcm.core.components.internal.models.v2.PageListItemImpl#getTeaserResource to include the following line:

                overriddenProperties.put(PN_ID, getId());

For consistency, the same should be done in com.adobe.cq.wcm.core.components.internal.models.v4.ExternalLinkListItemImpl#getTeaserResource

HitmanInWis avatar May 28 '24 18:05 HitmanInWis