[MM-32946][MM-40602] Ensure URL is valid before showing tooltip link, allow parsed URLs that aren't valid to open in browser (#1925)
* [MM-40602] Ensure URL is valid before showing tooltip link * Rework to allow invalid URLs to display * [MM-32946] Allow parsable URLs and open invalid URIs in browser
This commit is contained in:
@@ -40,7 +40,11 @@ function getHost(inputURL: URL | string) {
|
||||
|
||||
// isInternalURL determines if the target url is internal to the application.
|
||||
// - currentURL is the current url inside the webview
|
||||
function isInternalURL(targetURL: URL, currentURL: URL) {
|
||||
function isInternalURL(targetURL: URL | undefined, currentURL: URL) {
|
||||
if (!targetURL) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (targetURL.host !== currentURL.host) {
|
||||
return false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user