Problem/Motivation
When the audit detects a redirect that points back to itself (a self-loop), the record saved in the database contains incorrect data in the path field. This can cause duplicate records to be created on subsequent audit runs and leads to misleading information in the dashboard when inspecting the details of a self-loop.
Steps to reproduce
- Create a redirect where the source is an alias of the destination (e.g. source: `about-us`, destination:`internal:/node/1`, where `about-us` is the alias for `node/1`).
- Run the audit multiple times.
- Observe that duplicate self-loop records are created, or that the chain detail shows incorrect intermediate redirects.
Issue fork redirect_audit-3582211
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:
- 3582211-self-loop-redirects-are
changes, plain diff MR !12
Comments
Comment #2
antonio nunez commentedComment #4
antonio nunez commentedThis issue has been resolved as part of the work done in #3587839. Closing as duplicate.