User story: As an administrator, I want to move pages and their talk page in place of existing pages with talk pages, without needing to manually move the talk page later, so that I save time and reduce confusion.
Background
When administrators attempt to move pages to titles which already have content, they can opt to automatically delete the destination page while performing the move:
This works as expected. A separate feature allows users to move associated discussion pages along with pages when performing a move. This works as expected if the destination discussion page doesn't exist.
However, if the destination does have a talk page already, even if an administrator checks the Yes, delete the page "PAGENAME" checkbox, the discussion page will not be moved to the destination title. This leaves a discussion page at the original title, and results in the destination discussion page remaining in place. The administrator receives a brief error message on the 'Move succeeded' page: The page Talk:PAGENAME already exists and cannot be automatically overwritten.
This behaviour is unintuitive and causes additional work for administrators, who need to go around and clean up these page moves. It's not obvious at the start of the process that the talk page exists already and won't be moved - they only find out after moving the page that the talk page move was unsuccessful.
Steps to reproduce
- Create Page A and Talk:Page A
- Create Page B and Talk:Page B
- As an administrator, move Page B to Page A, with the Move associated talk page checkbox selected.
- After receiving the 'page already exists' warning message, select Yes, delete the page "PAGENAME" and confirm the move.
- Observe that both Talk:Page A and Talk:Page B still exist in their original locations, despite Page A having been deleted and Page B moved in its place.
The intended outcome is:
- Talk:Page A is deleted and Talk:Page B is moved in its place.
Potential solutions
The original task description suggested that one solution could be to display the The destination page "PAGENAME" already exists. Do you want to delete it to make way for the move? a second time for the talk page, presumably along with a second checkbox explicitly confirming talk page deletion.
Another approach could be to simply adjust the warning to The destination page "PAGENAME" already exists, along with a talk page "Talk:PAGENAME". Do you want to delete them to make way for the move? if the user selected Move associated talk page and the destination talk page exists, and extend the checkbox to Yes, delete the page "PAGENAME" and "Talk:PAGENAME".
Open questions
- Does this require an API change?
- What should happen if an administrator attempts to move Page B and Talk:Page B when Page A doesn't exist, but Talk:Page A does?



