[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:
@@ -311,7 +311,7 @@ export class MattermostView extends EventEmitter {
|
||||
}
|
||||
|
||||
handleUpdateTarget = (e: Event, url: string) => {
|
||||
if (!url || !urlUtils.isInternalURL(new URL(url), this.tab.server.url)) {
|
||||
if (url && !urlUtils.isInternalURL(urlUtils.parseURL(url), this.tab.server.url)) {
|
||||
this.emit(UPDATE_TARGET_URL, url);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user