go to the correct listing page when we delete an object

as we use the same code for deleting organisations and people use the
type to determine the page to redirect to upon delete