Configuring redirects
When selecting a redirect step for a tour, Produktly will do a full page refresh by default. If you are using for example React as a single page application (SPA) you might want to instead do a redirect inside your application. This way you can make the user experience smoother. Otherwise Produktly product tour will use a normal JavaScript redirect that will also reload the whole website.
You can configure how the redirection should happen by calling the window.Produktly.configure with an options object that contains a function for redirect. It can be called anywhere in the app, and at any point of the lifecycle of your application.
For example:
window.Produktly.configure({
redirect: (url) => {
yourRedirectFunction(url);
},
});