useOpenExternal hook returns a function to open external links. This is the proper way to navigate users to external URLs from within a view, as it delegates to the host application to handle the navigation appropriately.
Basic usage
Returns
Parameters
href: string- Required
- The URL to open
options.redirectUrl?: false- Prevent the host from appending a
?redirectUrl=...query param - Supported by ChatGPT only
- Prevent the host from appending a