Fix errors with URL generation when deleting.