A better broken links report for Optimizely CMS 13
In May I wrote about adding exclude patterns to the Link Validation job in CMS 11. That works, but every change to the patterns needs a deploy, and the built-in report is a bit limited. It only shows the URL, so editors have a hard time finding where the broken link actually is.
So I built a small tool for CMS 13 that gives a better report and lets you adjust the exclude patterns directly in the UI.
A typical case is an intranet with links to protected resources on a private network. The link validation job can't reach them, so they show up as broken every time even though they work fine for the users. With an exclude pattern you can ignore those links once and for all.
What it does:
- Shows the link text and where the link sits, for example "Main body" or "Teaser › Link", so editors can find it and fix it.
- Filter by status, domain, page, age and language.
- Exclude patterns (regex) that you add and change in the UI, with a live preview of what they match. They apply directly without a restart, also in Optimizely's own report and dashboard gadget.
- Acknowledge known broken links to hide them until their status changes.
- Export to CSV and Excel.
- You can extend the collumns if you have ie a responsible editor for a page.
It uses the built-in Link Validation job as is. The tool reads the job's results and hooks in the exclude patterns, so nothing in the job itself is changed.


Setup is one line after AddCms():
services.AddLinkStatus();
It's a first version and only tested on CMS 13.1 with a small amount of broken links, so use it as inspiration or as is.
Code over at my GitHub: LinkStatus
Comments