- Issue created by @anthonygray47
- πΊπΈUnited States rhovland Oregon
I am also encountering this on our site. I have pathauto installed. It was added later after a bunch of products were already created with urls such as `/product/2398`. When I go to enable automatic aliases for those products a redirect is automatically created for the path, creating an infinite loop.
While the redirect UI to add a redirect validates these issues and refuses to create aliases that would cause infinite loops it seems it's missing validation when redirects are created programmatically.
A patch to do this validation when redirects are created automatically is needed to prevent this from happening. The currently posted patch does not address this as it only checks for node paths.
- Issue was unassigned.
- πΊπΈUnited States rhovland Oregon
Ok I have information about how to reproduce this.
If you have automatic redirect creation enabled and have saved an entity with the url alias set to the system path for the entity. Go back and change it to something else. A redirect will be created that results in an infinite redirect loop.Eg:
Url alias for a product set to/product/1465
changed to/product/1465-a-pretty-name