AEM 6.5.6/Day CQ Linkchecker +Handlebars: a/link tag is getting stripped | Community
Skip to main content
jayv25585659
Level 8
July 15, 2021
Solved

AEM 6.5.6/Day CQ Linkchecker +Handlebars: a/link tag is getting stripped

  • July 15, 2021
  • 2 replies
  • 1197 views

As above. When I looked at the rendered HTML, the <a> tag is missing completely.

This is my HTML code:

 

 

<h3>{{PRODUCT_CATEGORY}}</h3> <h3><a href="{{PRODUCT_URL}}" x-cq-linkchecker=“valid”>MY LINK HERE</a></h3>

 

 

I looked at the logs and the error is because of the linkchecker service

 

com.day.cq.rewriter.linkchecker.impl.LinkCheckerImpl Ignoring malformed URI

 

This should not be a problem (theoretically) because I followed all the 3 suggestions on this page: https://experienceleague.adobe.com/docs/experience-cloud-kcs/kbarticles/KA-16563.html?lang=en

  1. I added x-cq-linkchecker=“valid” in my link tag. As a test, I tried "valid" and "skip". I got the same result.
  2. I disabled link checking in Day CQ Link Checker Transformer service
  3. Added ^ to the Link checker override patternsAD

additional info:

  1. localhost:4502/etc/linkchecker.html has no entries/records
  2. Day CQ Link Checker Task/Scheduler Period = 3600 seconds (though I do not this should matter since I supposedly disabled link checking?)


 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Shubham_borole

Hi,

 

Can you try to update the Link Checked Transformer and check?

Also try to delete the config, reload and save the desired config again?
For me just Checking the "Disable Checking" checkbox helps. AEM 6.5.8

2 replies

Dipti_Chauhan
Community Advisor
Community Advisor
July 15, 2021

Hi

  Can you check when link was last validated (/etc/linkchecker.html). And also check link checker service scheduler frequency .May be this link is yet to be scanned.

 

Thanks

Dipti Chauhan

jayv25585659
Level 8
July 15, 2021
Thank you for the reply. I just edited my original post with additional information.
Shubham_borole
Community Advisor
Shubham_boroleCommunity AdvisorAccepted solution
Community Advisor
July 16, 2021

Hi,

 

Can you try to update the Link Checked Transformer and check?

Also try to delete the config, reload and save the desired config again?
For me just Checking the "Disable Checking" checkbox helps. AEM 6.5.8