Skip to main content

🔗 Custom URL handler

Tags: JavaScript, React, Vue, Angular, Website, Web App

There are scenarios where you need complete control over the behavior of hyperlink actions within your application. The method described below enables you to override the default URL handler. By setting a new URL handler, the Gleap framework will no longer manage URL openings automatically. Instead, it will invoke your custom callback function, giving you the freedom to handle URL interactions according to your specific requirements.

Configure the URL handler​

Gleap.setUrlHandler((url) => {
// Insert your URL handling logic here
// Default: location.href = url;
});