> ## Documentation Index
> Fetch the complete documentation index at: https://docs.gleap.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Custom URL handler

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

```javascript theme={null}
Gleap.getInstance().registerCustomLinkHandler(new CustomLinkHandlerCallback() {
    @Override
    public void invoke(String url) {
        // Insert your URL handling logic here
    }
});
```
