Prevent non-renderable topic heading pages from appearing as links in AEM Sites Breadcrumb v2

Adobe Experience Manager (AEM) Sites Breadcrumb v2 may display AEM Guides topic heading pages as clickable links even when they don’t have a valid cq:template or sling:resourceType, resulting in blank pages and backend errors. To resolve the issue, update the breadcrumb logic to render links only for valid pages and display non-renderable topic headings as plain text.

Description description

Environment

Adobe Experience Manager (AEM) Sites

Issue/Symptoms

  • Breadcrumb v2 displays clickable links for topic heading pages generated from AEM Guides.
  • Topic heading pages are intended for content organization and navigation hierarchy rather than standalone rendering.
  • Selecting these links can result in blank pages and backend errors.
  • Affected topic heading pages don’t have a valid cq:template or sling:resourceType.
  • Breadcrumb navigation should include only valid, renderable pages as links.

Resolution resolution

Follow the steps below to resolve the issue:

  1. Review the Breadcrumb v2 component implementation and determine whether you’re using a custom version or the out-of-the-box (OOTB) component.

  2. Identify topic heading pages in the content structure that are used only for navigation and don’t have a valid cq:template or sling:resourceType.

  3. Update the breadcrumb component logic to prevent these topic heading pages from being rendered as clickable links. Modify the HTL/Sightly script or backing Java logic to check for sling:resourceType or cq:template before rendering a link.

  4. In the HTL logic:

    • Render a breadcrumb link only when the page has a sling:resourceType property.
    • Otherwise, display the page title as plain text.
  5. Deploy the updated breadcrumb component to a QA or staging environment.

  6. Test the breadcrumb navigation and verify that topic heading pages aren’t rendered as clickable links and that navigation no longer results in blank pages or backend errors.

  7. After successful testing, deploy the changes to the production environment.

recommendation-more-help
experience-cloud-kcs-help-kbarticles