Problem/Motivation

When the module is installed on a site that already has redirects, most chains and loops are not detected. The scan reports few or no results even when chains and loops clearly exist in the database.

This happens because the detection algorithm cannot match redirect targets back to redirect sources when paths involve aliases or different languages.

Steps to reproduce

  1. Install a multilingual Drupal site with existing redirects (aliases + multiple languages).
  2. Install redirect_audit.
  3. Run drush ras (redirect-audit:scan).
  4. Observe that most chains and loops are not detected.
Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

antonio nunez created an issue. See original summary.

antonio nunez’s picture

Status: Active » Fixed

Tested on several multisite and multilingual projects. False positives and false negatives that appeared in complex language configurations have been corrected. New cases such as self-loops are detected, and the full scan runs cleanly on every execution.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.