[BUGFIX] Determine returnUrl when deleting pages in EditDocumentController