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.
^http(s)?:\/\/.*
Thanks! Is this the correct json?
"EpiServer": {
"Cms": {
"LinkValidatorOptions": {
"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?
/Kristoffer
The above is the corect json and the job works as exceptected.
/Kristoffer
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
Hi!
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?
Thanks!
/Kristoffer