Error wixLocation

Hi,
You should use wixLocation.url, check out the API to view the functions:

Good luck:)