useOpenExternal hook returns a function to open external links. This is the proper way to navigate users to external URLs from within a widget, 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- Optional
- Pass
falseto disable the host from appending a?redirectUrl=...query param