Opens URLs in the appropriate context - either within the Mini App environment or in external browsers. Handles cross-client compatibility automatically.
Returns
Function that opens the specified URL. Behavior depends on the URL type and client capabilities.
The URL to open. Can be http/https links, deep links, or other URI schemes.
URLs opened with
useOpenUrl
may open in different contexts depending on the client. Don’t rely on specific opening behavior for critical functionality.useOpenUrl
automatically handles cross-client compatibility and provides the best user experience for external navigation.