Page MenuHomePhabricator

Add a button or link to automatically correct a double redirect as part of the warning on attempted creation
Open, Needs TriagePublicFeature

Description

Since T326056 was resolved, when you attempt to create a double redirect you get a warning about it with advice on how to correct it.
It would be more user friendly if the warning included a button or link that you could click to make the suggested change automatically.

This was suggested by User:Utfor at https://en.wikipedia.org/wiki/Wikipedia:Village_pump_(proposals)#Double_redirect_creation
T351016 is related but seems to be asking for a way to fix double redirects after creation rather than at the point of attempted creation, so I don't think they are the same.

Event Timeline

I think this would be a good idea, but I'm not sure how the technical implementation in MW would look like.
This could definitely be implemented on-wiki via a JavaScript gadget though.

This needs something like action=preload, but as far as I can tell action=preload only preloads text from an existing page, whereas what's needed here is to preload the link it suggests ($2 I think from the error message), plus ideally retaining any text outside the redirect link such as comments or redirect templates that the user might have added.