Install
Works with Drupal: ^10.3 || ^11 || ^12Using Composer to manage Drupal site dependencies
Alternative installation files
Release notes
First release candidate for 2.2.0. It adds Drupal 12 support, requires Drupal 10.3 or later, and includes a large set of fixes for reliability, memory use and the link index. Please test it on a staging copy and report any regressions in #3624551: [meta] Plan for 2.2.0 release.
Highlights
- Link extraction moves out of the page request and runs after the response is sent, so saving content is faster (#3622264: Avoid expensive operations while client waits for response).
- Better support for nested entities such as Paragraphs: the report can show the page they belong to, and a new parent entity relationship is available for Views (#3135654: Allow nested entities (like Paragraphs) in 'Page entity label' and 'Page entity link' Views fields, #3539894: Add parent entity relationship).
- New options: check only the default translation (#3614972: Provide option to only check links found in default translation), and turn off cron activity (#3313343: Add option to disable cron activity).
- The "own broken links report" is back (#3334562: Missing "own broken links report"), and users with report access can now use bulk actions on links (#3609786: Allow broken links report users to view linkchecker link entities).
- Text format filters are taken into account when extracting links (#3616774: Text format filters are not taken into account), and 308 Permanent Redirect is recognised (#2958196: Status code 308 for Permanent Redirect).
- Many crash and data fixes: malformed URLs no longer stop cron, entities with string IDs are supported, and memory use during scanning is lower.
Before you upgrade
- Run
drush updb. Update 8008 changeslinkchecker_index.entity_idto a string and rebuilds the table's primary key, which can take a while on sites with a large link index. Post-updates move existing settings to the new structure, for examplefilter_blacklistbecomesfilter_blocklist. - Drupal 10.3 or later is required.
- Developers: links are extracted when the request ends, not during
$entity->save(). Several services and plugins have API changes; see the change records below.
Contributors (61)
AndreRB, Anybody, Project-Update-Bot, VladimirAus, alexh, alorenc, andras_szilagyi, andrerb, anybody, ashbeeb, bburg, bgilhome, bond708, c-logemann, cgoffin, claudiu.cristea, claudiucristea, codebymikey, daniel_j, davidburns, dimilias, divya.sejekan, dozz, eiriksm, enchufe, ericgsmith, fengtan, gngn, groendijk, gugalamaciek, hass, huzooka, idflood, joelpittet, joseph.olstad, joshf, jurgenhaas, jwilson3, kala4ek, lambert, lee.cocklin, liam morland, mably, marc.bau, mdranove, mgugala, naidim, nitinkumar_7, patrickharris, quadrexdev, rosk0, rp7, saidatom, schlaukopf, scotwith1t, shivam_tiwari, solideogloria, vistree, vladimiraus, webflo, xjkwak
Changelog
Issues: 37 issues resolved.
Changes since 2.1.0 (compare):
Bug
- feat: #3580971 Remove VERSION from libraries.yml
- #3572942: Fix 'recent log entries' link url.
- fix: #3607990 Trim whitespace from link URLs to prevent MalformedUriException halting link checks
- fix: #3567956 linkchecker_index table does not support entities with string IDs
- fix: #3469263 Links never checked
- fix: #3620347 checkParentEntityAccess() passes "update" into a field access check that only expects "view"/"edit"
- fix: #3604202 Invalid href attribute value in WYSIWYG field causes fatal error during link checking
- fix: #3622994 Uncaught MalformedUriException from Guzzle crashes cron when a link's URL is malformed
- fix: #3616774 Text format filters are not taken into account
- fix: #3543895 Deferred link extraction still runs for entities deleted in the same request
- fix: #3624900 Link cleanup fails when the queue table does not exist
- fix: #3369063 Database exception: Unknown column 'base.' when using entity types without bundle
- fix: #3615891 Link extraction status can be wrong when the source field is removed
- fix: #3626810 Convert parent_entity_id entity field from integer to string to match entity_id
- fix: #3625860 Errors messages logged while running cron are confusing
- fix: #3626994 Queued entities of different types with the same ID overwrite each other
- fix: #3607810 Missing index on parent_entity_type_id+parent_entity_id and url hash
- fix: #3482160 "The link *** will be checked on next cron run" on every redirect
- fix: #3627255 Memory issues when scanning for links
- fix: #3609786 Allow broken links report users to view linkchecker link entities
Feature
- feat: #3622264 Avoid expensive operations while client waits for response
- feat: #3539894 Add parent entity relationship
- feat: #3614972 Provide option to only check links found in default translation
- feat: #3313343 Add option to disable cron activity
- feat: #3135654 Allow nested entities (like Paragraphs) in 'Page entity label' and 'Page entity link' Views fields
- feat: #2958196 Status code 308 for Permanent Redirect
Misc
- Edit LinkExtractorBatch.php to add new query tag.
Task
- fix: #3582328 Fix broken tests blocking CI pipeline success
- task: #3616020 Fix PHPStan errors for deprecated user loading and entity storage injection
- task: #3334562 Missing "own broken links report"
- task: #3562339 Use PHP attributes instead of annotations for plugins
- task: #3402569 Handling "Unhandled link error" on SSL cert problem
- task: #3468342 Change "Default URL scheme" to HTTPS
- Resolve #3629131 "Require drupal 10.3"
- task: #3633184 Parent field updates can leave Linkchecker schema changes pending
- task: #3441943 Allow non-standard response codes like 418 to be ignored
- task: #3601409 Drupal 12 compatibility
- fix: #3634428 Views bulk form throws TypeError when access to a link action is denied