Better way to calculate the new document url when copying

[#78409624]
Fix indentation (whitespace only, no functional changes)
Editing the document title in the top bar treats it as a rename

Underneath, it's a copy/delete.

[#78130918]