I am facing issue with <a href=> html tag which is not getting on publish/dispatcher page and link is disappearing, please find below affected html.
<div class="c-error-page__error-content__error-description" data-sly-test="${data.errorDescription}">${data.errorDescription @context="html"}</div>
<sly data-sly-list.item="${data.links}" data-sly-test="${data.links}">
</sly>
</div>
i have authored link URL and text on page component and it's showing in jcr node of page but class applied for <a> tag and authored URL link it's not getting on publish environment, please find below affected page source html.
<div class="c-error-page__error-content__error-description"><p>Page not found.</p>
</div>
</div>
This issue is working fine on my local and lower dev (author/publish) environment but facing issue on production publish environment.
I am not sure why it's not working to specific publish environment, can you please give me some inputs.
Solved! Go to Solution.
Hi,
AEM link checker is used to validate all internal and external links available on the page.
It automatically checks links and will not publish a broken link. In some ways, this is great, since AEM self-monitors and corrects for issues, but when you know the link is correct and it wont let you write it, then theres a problem.
The following are few example links which might not be published by AEM (AEM consider them as broken links):
How to fix this issue:
In order to fix this issue, you can follow either of the steps mentioned in the below articles:
http://aemexperience.blogspot.com/2015/07/aem-link-checker-fixing-broken-links.html
http://www.aemcq5tutorials.com/tutorials/aem-link-checker-comprehensive-guide/#fix-broken-links-aem
Also you can refer to following links which will help you resolve this issue:
http://www.wemblog.com/2011/10/how-to-make-sure-that-links-are-always.html
https://helpx.adobe.com/experience-manager/kb/DisableLinkChecker.html
I hope this helps!
Regards,
Lavanya Malyala
Views
Replies
Total Likes
Day Link checker configuration validates if the URL is valid URL or not, if not then it will remove the anchor tag, please check Link check configuration in production publish instance. you can try disabling link checker service and check if you are able to see links are appearing in the output, after disabling link check service you should all valid and invalid links.
Disabling link checker service is not recommended, you can do this only for troubleshooting.
http://www.aemcq5tutorials.com/tutorials/aem-link-checker-comprehensive-guide/
Views
Replies
Total Likes
Hi,
AEM link checker is used to validate all internal and external links available on the page.
It automatically checks links and will not publish a broken link. In some ways, this is great, since AEM self-monitors and corrects for issues, but when you know the link is correct and it wont let you write it, then theres a problem.
The following are few example links which might not be published by AEM (AEM consider them as broken links):
How to fix this issue:
In order to fix this issue, you can follow either of the steps mentioned in the below articles:
http://aemexperience.blogspot.com/2015/07/aem-link-checker-fixing-broken-links.html
http://www.aemcq5tutorials.com/tutorials/aem-link-checker-comprehensive-guide/#fix-broken-links-aem
Also you can refer to following links which will help you resolve this issue:
http://www.wemblog.com/2011/10/how-to-make-sure-that-links-are-always.html
https://helpx.adobe.com/experience-manager/kb/DisableLinkChecker.html
I hope this helps!
Regards,
Lavanya Malyala
Views
Replies
Total Likes
To trouble shoot
Check 1
Is this returning you valid objects ? data.links ; is this returning the value intended ?
Check 2
If check 1 is cleared , then make sure the links returned are valid. But since you are saying in the lower region it is working fine, I would like you to cross verify this as others suggested
Check 3
Always keep your immediate lower region (STAGE or PREVIEW) as a replica of PROD and do a exact content to content test in those regions before going for PROD deployment
Thanks
Veena
As most of them said, 1st thing is to check your href link. You can disable the linkchecker following the below steps and see if that works
Also, I see there is a <div> missing in your html which you may to correct it.
I am also facing the same issue. But this issue we have just in production. I compared the link checker configuration and its is the same in the lower environments. I tried adding x-cq-linkchecker="skip" to the a tag. I cannot test the same in the lower environments as we don't have this issue in lower environments. This attribute is not getting displayed in the a tag using DOM explorer. Is that expected? Will we not see this parameter in the DOM Explorer? Can some one help?
Views
Replies
Total Likes
Views
Likes
Replies