Linkchecker marking URLs invalid without www

Avatar

Avatar

RahulBapat

Avatar

RahulBapat

RahulBapat

09-01-2020

The original authored URL is - https://example.com/hellowpage, please note there is no www here, 

However, linkechecker is checking for https://www.example.com/hellowpage. I do not want it to prefix www. 

Is there is a config/setting to switch this behaviour off and make the linkhecker valdiate only the authored links. 

*ERROR* [sling-default-3-com.day.cq.rewriter.linkchecker.impl.LinkCheckerTask.108808] com.day.cq.rewriter.linkchecker.impl.LinkCheckerTask Failed to validate URL https://www.example.com/hellowpage: java.net.UnknownHostException: www.example.com: Name or service not known

 

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

Jörg_Hoh

Employee

Total Posts

3.0K

Likes

910

Correct Answer

1.0K

Avatar

Jörg_Hoh

Employee

Total Posts

3.0K

Likes

910

Correct Answer

1.0K
Jörg_Hoh
Employee

13-01-2020

The linkchecker is only recording links which are rendered as links in your pages. Thus if you encounter such a "www" domain, one of your pages is having such a link. The best way would be to crawl your site and identify the link in that format. Not sure of the originating page is listed as part of the node structure for the linkchecker.

Answers (1)

Answers (1)

Avatar

Avatar

Umesh_Sondhi

MVP

Avatar

Umesh_Sondhi

MVP

Umesh_Sondhi
MVP

20-01-2020

Hi @RahulBapat 

Simply use the attribute x-cq-linkchecker="skip" inside the anchor tag if you want this check to be skipped.
e.g.
<a href="/skip-the-link" x-cq-linkchecker="skip">Skip Link</a>


Hope it helps 🙂