From c9e4a85b0dc59ab11f450eda037c5b8897555709 Mon Sep 17 00:00:00 2001 From: Dean Rather Date: Wed, 7 Feb 2024 13:34:39 +1100 Subject: [PATCH] update Router.js so that double-clicking an element with a url will open the url in a new window --- modules/Router.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/Router.js b/modules/Router.js index d68fa80..f31e7fa 100644 --- a/modules/Router.js +++ b/modules/Router.js @@ -21,6 +21,8 @@ export class Router { handleElementDoubleClick = (event, elementId) => { const element = structurizr.workspace.findElementById(elementId) + + if(element.url) window.open(element.url, '_blank'); switch (element.type) { case structurizr.constants.SOFTWARE_SYSTEM_ELEMENT_TYPE: