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
723 stars 737 forks source link

Page List Teaser Image URLs always Redirect #2771

Open HitmanInWis opened 4 weeks ago

HitmanInWis commented 4 weeks ago

Bug present as of version: 2.24.7-SNAPSHOT

When using the page List component and displaying as Teasers, the Images get rendered with a URL that often redirects. This is b/c the Page List Items are not true components in the JCR, and thus they have no cq:lastModified date to put into the image URL, resulting in the image using the cq:lastModified value from the linked DAM Asset. However, the URL is crafted with a suffix that directly references the Image component stored as cq:featuredimage under the linked page. When the URL comes into the AdaptiveImageServlet the cq:lastModified date of the referenced cq:featuredimage node is picked up, which is of course different than the cq:lastModified date in the URL that came from the DAM assets, forcing a redirect.