'url' is returned for existing items, 'tempUrl' is returned for new items.
Duplicate is existing item that's why 'url' was returned, the other case is a new item, that's why 'tempUrl' was returned.