Hi @tejaswi_aem ,
When adding external links that require authentication in the AEM Text component, the Link Checker in Author mode marks them as invalid or broken, even though they are valid in production (Publish). This happens because the link checker can't access authentication-protected URLs.
To bypass link validation for such URLs safely and effectively, add the attribute x-cq-linkchecker="skip" to your anchor (<a>) tag.
This tells AEM to skip checking this link in Author.
Example:
<a href="https://secure.example.com" x-cq-linkchecker="skip">Secure Link</a>
Why This Works
- AEM’s Link Checker runs only in Author, not in Publish.
- This attribute is officially supported by Adobe for skipping link checks.
- It ensures the link does not appear broken in the authoring interface while still functioning normally in Publish.
- No need to modify OSGi configs or whitelist domains globally.
For Rich Text Editor (RTE) Components
If you're using an RTE and don’t see the option to edit HTML directly:
Ensure the sourceedit plugin is enabled in the dialog’s configuration so authors can manually add the attribute:
<uiSettings jcr:primaryType="nt:unstructured">
<rtePlugins jcr:primaryType="nt:unstructured">
<edit jcr:primaryType="nt:unstructured" features="*"/>
</rtePlugins>
</uiSettings>
Use this approach only for known secure and valid URLs. This method is non-invasive, does not affect end-users, and is future-proof with AEM as a Cloud Service.
Regards,
Amit