Install

Works with Drupal: ^10.3 || ^11

Using Composer to manage Drupal site dependencies

Alternative installation files

Download tar.gz 78.11 KB
MD5: 9b416ed92a5c57a174f4dc9a656ae1b2
SHA-1: 91bc0e8fcad215d900216e96fbd22650b335062a
SHA-256: 14e6cfad8e24b2c7d1cab6acf5c3be274b9a671c107554fef48ab4915ca93006
Download zip 117.11 KB
MD5: 2da950ec935bb9645d8df5207f8900f6
SHA-1: 5b37dd85d62b2ee1ad45cd12c79972d6861be9d1
SHA-256: 7156808079863560a1ada97f763ef92d29a61daf2e9ee161cdd5da6c7c829424

Release notes

This release fixes redirects that never fired on multilingual sites and for URLs with accented characters, counts 404s that were missed, caps the data recorded from anonymous traffic, and fixes a fatal error on PHP 8.1 and 8.2.

Before updating

  • Run the database updates (drush updb or /update.php) right after deploying the code. Until they run, 404 pages return a 500 error. The updates add a language column, move the existing 404s to the path Redirect matches against, and set the new retention settings.
  • Data retention: on the first cron run, the daily history older than the 14 days the trend shows is deleted, as well as referers not seen for 90 days. By default, at most 10,000 broken URLs and 50 referers per URL are kept. These limits can be changed in the settings.
  • Exclusion patterns: regexes are now delimited by #, ~ or %; a line starting with / is a path or a glob. Saved regexes delimited by / are rewritten automatically.
  • Drupal 10.3 or later is now required. The Drush command needs Drush 12 or later.

Bug fixes

  • The module failed to load on PHP 8.1 and 8.2 (Drupal 10 sites).
  • Redirects created from the dashboard never fired for a 404 with a language prefix (/fr/old-page) or encoded characters (/caf%C3%A9). 404s are now recorded with the processed path and their language, and redirects are created in that language.
  • by core's fast 404 handler, were not counted.

  • The watchdog import kept the query string and the base path, and ignored the exclusion patterns.
  • The watchdog import was blocked on sites without a sitemap.xml.
  • Deleting a URL left its daily history behind, which came back if the URL was hit again.
  • The "Create manual redirect" link ignored the language prefix and the base path.

Security hardening

  • A redirect can only be created for a recorded 404, and redirecting to an external URL requires the "Administer redirects" permission.
  • The tables filled by anonymous traffic no longer grow without limit, and referers, which can contain personal data, are no longer kept forever.

New features

  • #3622726: Export the 404 list to CSV, with the dashboard's filters and sort. Thanks to shank115.
  • The dashboard and the CSV export show the language of each broken URL.

Compatibility and code quality

  • #3603179: Hooks are implemented in an autowired class with #[Hook] attributes, with #[LegacyHook] wrappers for Drupal older than 11.1.
  • #3628265: Fixed the Drupal 12 deprecations reported for this module. GitLab CI runs against Drupal 10, 11 and 12.
  • All user interface strings in the templates are translatable.
  • The settings form uses #config_target, and the Drush command moved to src/Drush/Commands.
Created by: elfifou
Created on: 17 Oct 2026 at 19:41 UTC
Last updated: 17 Oct 2026 at 19:41 UTC
Bug fixes
New features

Other releases