Search by

lapis / link-check

toros.egon

Broken link report for Lapis CMS: checks the links editors put on pages, daily, and shows the broken ones in the toolbar

v1.0.0 2026-12-01 21:55 UTC

This package is auto-updated.

Last update: 2026-12-01 22:09:55 UTC


README

A broken link report for Lapis CMS: the links editors put on the site are checked once a day, and the broken ones are listed in the toolbar (More → Broken links), each with the pages it is on.

composer require lapis/link-check
./lapis links:check        # now; schedule:run (cron) does it daily

What is checked

The links and images in the published blocks of published pages and in global blocks (rich text, link and image blocks, and the addresses in plugin blocks), and the link settings (Url fields, menus). Not the links written into templates: those are the developer's, and a test catches them better.

Link Broken when
a page of the site (/about, or a full address with the site's host from BASE_URI) the router finds no page, and there is no redirect from it
/uploads/…, /assets/… the file is not there
another site it answers 404 or 410, or cannot be reached at all
mailto:, tel:, #anchor never checked

Another site that answers 401, 403, 429 or a server error is not reported: that is often a site turning robots away, or down for a moment. Each address is checked once, however many pages use it, with a GET of at most 30 seconds.

Where the result goes

  • More → Broken links in the toolbar: each broken address, why, and the pages it is on (a link to each).
  • ./lapis doctor: ok when none is broken, warn with the count when some are, info before the first check.
  • ./lapis links:check prints the same, and keeps the report in storage/link-check.json.

Fix a link on its page, and it leaves the list after the next check.

The texts are under link_check.* (English and Hungarian included); a site changes them in its own app/localization.<locale>.yml.