Smart Redirects Manager detects 404 errors on a site, records hit statistics, and suggests redirect targets so site builders can fix broken URLs from a single admin dashboard. It integrates with the Redirect module: fixes are created as regular Redirect entities.
The module logs every 404 (total, daily and weekly counts, 14-day trend, priority level, last seen, per-referer breakdown) and ranks candidate targets by fuzzy/keyword matching against valid paths collected from several sources: URL aliases, nodes, taxonomy terms, routes, Views page displays and the site's sitemap.xml. From the dashboard, a modal lets administrators review the suggestions and create a redirect in one click. Bulk actions, exclusion patterns (glob or regex), an ignore workflow, an import of past 404s from the watchdog log and a Drush command are also provided.
The goal is to make fixing broken URLs fast and safe on sites with frequent content changes or migrations, while keeping SEO under control.
Comments
Comment #2
vishal.kadamComment #3
avpadernoThank you for applying!
Before giving links helpful to understand how the review process works, what to expect from a review, and what to do to avoid a review takes more time than needed, I would like to thank all the reviewers for the work they do.
These applications are volunters-driven, which also means it is not possible to predict when an application will be marked fixed and the applicant will get the permission to opt projects into security advisory policy. While we aim to make an application as quick as possible, it is also important for us that more people review the project used for an application. In this way, we make sure applications do not miss some important points that should be instead reported.
Applications are not meant to be complete debugging sessions that eliminate every existing bug, though. I apologize if sometimes applications seem to go into too-detailed reviews.
Please read Review process for security advisory coverage: What to expect for more details and Security advisory coverage application checklist to understand what reviewers look for. Tips for ensuring a smooth review gives some hints for a smoother review.
The important notes are the following.
Keep in mind that once the project is opted into security advisory coverage, only Security Team members may change coverage.
To the reviewers
Please read How to review security advisory coverage applications, Application workflow, What to cover in an application review, and Tools to use for reviews.
The important notes are the following.
For new reviewers, I would also suggest to first read In which way the issue queue for coverage applications is different from other project queues.
Comment #4
elfifou commentedNote for reviewers: I merged one contributor commit into 1.0.x shortly after opening this application: c54a4f3 (Issue #3622726, CSV export, by shank115). The issue and its merge request predate this application (MR opened on 14 September); I reviewed it and asked for changes before merging, but I had missed the "only your commits" rule.
I won't merge any other contribution while this application is open.
If you prefer, I can revert that commit now and merge it again once the
application is closed.
Comment #5
avpaderno@elfifou There is no need to revert the commit done in #3622726: Add CSV export of the 404 list.
Comment #6
elfifou commentedThanks @avpaderno.
Before the first review, I applied a few changes to 1.0.x that reviewers usually ask for:
- Hooks are now implemented in an autowired class with #[Hook] attributes, with #[LegacyHook] wrappers for Drupal < 11.1, and core_version_requirement is ^10.3 || ^11.
- The settings form uses #config_target (with a new kernel test).
- The Drush command moved to src/Drush/Commands, without drush.services.yml.
- GitLab CI also runs against Drupal 12 (OPT_IN_TEST_NEXT_MAJOR); the deprecations reported for this module are fixed.
All jobs pass on the current 1.0.x; the remaining Drupal 12 deprecations come from the Redirect module.
Comment #7
vishal.kadamFILE: templates/dashboard.html.twig
<h2 class="title">Smart Redirects Manager Dashboard</h2>Strings shown in the user interface must be translatable.
Comment #8
elfifou commentedThanks @vishal.kadam!
Fixed in 1.0.x (a31f524). I went through all three templates rather than only the dashboard title:
While checking the code on older PHP versions, I also fixed typed class constants that required PHP 8.3 although the module supports Drupal 10 on PHP 8.1 and 8.2 (5d1406b).