This one comes out of a deliberate attempt to break the error messages on redirect creation, so is pretty low in priority:
Steps to replicate the issue:
- Create a page, at [[Bar]].
- Create a redirect, e.g. [[Foo]] → [[Bar]].
- Edit [[Bar]], and try to change it to a redirect back to [[Foo]].
What happens?:
An error message is thrown to discourage creation of double redirect (T326056), but that message suggests that the page [[Bar]] be redirected to itself with #REDIRECT [[Bar]]. If you follow these instructions, it will then throw a self-redirect warning. This is potentially confusing.
What should have happened instead?:
- On redirect creation, the redirect target of the target page ([[Bar]]) in the example above) should be checked to see if it's the page that's being edited (also [[Bar]] in the example above).
- If this occurs, a different error message should be shown. Suggestion:
You are trying to redirect this page to a redirect back to itself, thus creating a non-functioning redirect loop. Please reconsider what you are doing. If you resubmit this, the redirect will be created anyway.
Software version:
MW ≥1.44
- Notes**
Need to add an if condition to includes/editpage/Constraint/DoubleRedirectConstraint.php
