Page MenuHomePhabricator

Add an option to Nuke to also delete redirects pointing to deleted pages
Open, Needs TriagePublic

Description

When deleting pages in Nuke, admins would sometimes like to also delete all redirects pointing at the pages being deleted, so that there aren't redirects sitting around pointing at nothing, which would need to be tidied up manually.

This could be a form option.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Unlike T46318 I don't think there's a strong reason to display the number of redirects to be deleted - they're not useful at all after the destination page has been deleted - so we could simply have this be a checkbox.

Worth noting that there's no way of doing this for individual page deletions currently (T32893) - I wonder if it's worth building out the functionality there first, then just using it in Nuke.

There is a reason to display the number of redirects, I think. Some pages have thousands of redirects: https://en.wikipedia.org/wiki/Wikipedia:Database_reports/Articles_with_the_most_redirects

I for one would be very astonished if one button click caused thousands of deletions to be attributed to me, and would probably file a bug as I did in T345016

Enwiki also had a good-faith but misguided user deliberately retarget redirects to pages that were about to be deleted to get them deleted out-of-process: https://en.wikipedia.org/w/index.php?title=User_talk:Avilich&diff=prev&oldid=1019698402#Redirects_to_redlinks. While I don't expect that to be a problem here, it proves that mass actions without knowing exactly what you are about to do are scary,

There is a reason to display the number of redirects, I think. Some pages have thousands of redirects: https://en.wikipedia.org/wiki/Wikipedia:Database_reports/Articles_with_the_most_redirects

I for one would be very astonished if one button click caused thousands of deletions to be attributed to me, and would probably file a bug as I did in T345016

This is a great point, thanks! Given this, I agree we should show the number of redirects.