corrects redirect if a user deletes one of their messages