Web SDKv1.0.0

callbacks.onExternalLink

Takes over web, mailto: and tel: links in the document. Receives only addresses that passed the SDK's scheme check: http:, https:, mailto: and tel: (an address written without a scheme arrives with https:// in front). javascript:, data: and every other scheme never reach it, in-document links still jump to their page, and links.confirmExternal no longer applies. The address is chosen by whoever wrote the document, so show it to the user before opening it, and open it with noopener,noreferrer. An exception thrown by your handler is logged with console.error.
(url: string) => void

More in Callbacks