wixLocation.to("http://wix.com") not working !

Thanks J.D. for the quick suggestion.
Unfortunately I have already done the advised steps but no luck.

  1. Import Wix location already.

  2. Property panel of cgotostore0 has been setup already and hence when i click export function added in my developer code area. As I said if we use other than external web address like local page etc this button is working fine only with external web address this is not working.

  3. console.log( wixLocation.to( “http://wix.com” ) ) shows undefined, well this shows undefined even if you do console.log(“/home”) but for local page link parameters wix location is working.