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
730 stars 736 forks source link

External redirect link fails to display to page author #2812

Open HitmanInWis opened 1 month ago

HitmanInWis commented 1 month ago

Bug present as of version: 2.24.7-SNAPSHOT

If a page has a Redirect specified in page properties, the page contents are replaced with:

"This page redirects to "

However, if the Redirect target is an external link, the text displays:

"This page redirects to " (no link)

The external link should render just the same as an internal link, but com.adobe.cq.wcm.core.components.internal.models.v1.RedirectItemImpl is only generating a link when the redirect points to an internal AEM path.

HitmanInWis commented 1 month ago

Also if the Redirect target is an internal path that is invalid, the same thing happens. Though that's maybe acceptable, it might make more sense to show the invalid path since AEM will still redirect to that invalid path on wcmmode=disabled

cdressler commented 3 weeks ago

We have this exact same issue in our environment as well.