Skip to content
delta

Find and fix broken links

Checks every link in pages, templates and menus, then fixes the broken ones in the place they come from, after your approval.

Recipe
Find the broken links on my site and propose a fix for each one. Start with get-design-context, list-pages (published only), list-templates and list-menus. Do not change anything yet. 1. Collect every link: in the stored HTML of pages and templates, in post content, and in each menu (get-menu). Include links in buttons and images, and in the header and footer templates. 2. Check each address once. Record the result: works, redirects (and where to), broken (404 or 410), or failed (time-out or blocked). For an external site that blocks automated checks, mark it as "not checked", not as broken. 3. Show me a table: the link, where it is (page, template or menu, and the link text), the result, and your proposed fix. For an internal link, propose the current address of the same content. For a redirect, propose the final address. For an external link that has no new home, propose to remove the link and keep the text. 4. Wait for my approval. Take a snapshot with create-snapshot before the first fix. Then fix the approved rows one document at a time: patch-page-content for pages, patch-template-content for templates and update-menu for menus. A link in a template shows on every page that uses it, so fix it in the template, not on each page. 5. Check each fixed link again and give me the final list.