We are tryin to add the below code so that when a wix page URL is clicked from an external site (such as a Facebook ad) the user is taken to the Zoom URL we are trying to use
What else do we need to add to the page code to make this happen?
import wixLocation from ‘wix-location’;
// …
wixLocation.to(“http://wix.com”);
Please give us some more details on what kind of redirection should happen when you click on a URL from an external resource. Should the user be redirected to Zoom straight from the URL, or should they be directed to the site itself first and then to an external URL?
wix-location.to() is mostly used when some kind of action on a site should lead to redirection to another link or resource. Here is a reference for more information: https://www.wix.com/corvid/reference/wix-location.html#to