Our intranet does not an internet connection so validating external links is useless. Is there a way using the LinkValidatorOptions to the task only validating internal links and skipping all externals?
Can you add something to the settings config for linkValidation within excludePatterns
See here for a little more detail : The horrors of the Episerver Link Validation Job - Tomas Hensrud Gulla
CMS11 Documentation : Link validation (optimizely.com)
CMS12 Config: Cms section (optimizely.com)
I came here to post a link to my blog post, and say this can be achieved using the exclude pattern – but Minesh is way faster than me! 😆
Try this pattern to exclude all links starting with http:// or https:// – i.e. all external links.
Thanks! Is this the correct json?
"ExcludePatterns": [ "^http(s)?:\/\/.*" ]
Seems to try to validate external links anyway.
Also, I see that there is a lot of old links in the report, how can I clear the report?
The above is the corect json and the job works as exceptected.
To clear the report, you may (at your own risk) update the database directly.
UPDATE tblContentSoftlink SET LastCheckedDate = NULL, FirstDateBroken = NULL, HttpStatusCode = NULL, LinkStatus = NULL
Thanks Tomas, I just found that and it works perfect.