Fix issue where url is not returned for private urls