On redirect creation, the following checks are now made:
- To see if it's a self-redirect (T29683)
- To see if it's a redirect to a red link (T326057)
- To see if it's a redirect to another redirect (T326056).
One final one check is relevant here; check Title::isValidRedirectTarget to avoid:
- Linking to invalid special pages like [[special:LogOut]].
- Entering a link to an impossible page, e.g. #REDIRECT [[..]]
- Entering an empty link (i.e. #REDIRECT [[]])
The list of which pages are valid/invalid may have something to do with whether $wgDisableHardRedirects is set or not. Wikipedia doesn't use the default here, for some reason, so it may be best to test it on a different wiki.
