Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

Linkchecker and url parameters in sightly

Avatar

Level 5

I have urls like this: "/content/uc/news/search-results.html?submitted=submitted&topics=topics:collegeBound" that are displaying as non-existant by the link checker. The search-results page does exist, and linking to that alone does just fine. I'd prefer not to have to disable to the linkchecker for this component, but I'm also not even sure how I would do that as its written 100% in sightly, so the solution here: https://helpx.adobe.com/experience-manager/kb/DisableLinkChecker.html isn't applicable.

In the end, I guess my question is 2-fold

- Is there a ways to markup these links in the expression ${tag.url @ [SEOMTHINE HERE]} so that the linkchecker marks them as correct?
- How can I disable the linkchecker in sightly code?

2 Replies

Avatar

Level 10

Link checker is an AEM service. It cannot be turned off for only Sightly components and on for others. See. https://helpx.adobe.com/experience-manager/kb/DisableLinkChecker.html

Avatar

Level 2

You can also mark the links as valid by using x-cq-linkchecker=“valid”property in your <a> tag. In this case Link Checker will check the link but always mark as valid.
If you also use x-cq-linkchecker=“skip”, Link checker will not check the link and mark as valid.

After updating the code you would have to clear the linkchecker by deleting node /var/linkchecker from crx/de lite.