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
747 stars 753 forks source link

Invalid Teaser Action link renders as plain text #2765

Open HitmanInWis opened 6 months ago

HitmanInWis commented 6 months ago

Bug present as of version: 2.24.7-SNAPSHOT

When a Teaser action link points to a non-existent JCR location, the action renders as plain text onto the page w/o a link, breaking layout of the teaser. If a link points to an invalid location, it should simply not be rendered in publish mode. Or if we're concerned about hiding the error from stakeholders that want to fix the issue, perhaps a better solution is to render the invalid URL as a link, so that users attempting to go to the link get a 404 Not Found.