It depends on the flow which is not so clear from your description.
If you wish to get the url, and after that to let the user click a button to download - use the .link= option.
But if you wish to get the url and automatically redirect to this link without a manual click - use wixLocation.