16073: Use link element for keep-web links to allow open in new tab
authorStephen Smith <stephen@curii.com>
Thu, 29 Sep 2022 21:32:54 +0000 (17:32 -0400)
committerStephen Smith <stephen@curii.com>
Fri, 30 Sep 2022 02:32:54 +0000 (22:32 -0400)
Arvados-DCO-1.1-Signed-off-by: Stephen Smith <stephen@curii.com>

src/views/process-panel/process-io-card.tsx

index 2e01282ba0076934dc0d3cce71912b6cd9a88c64..d60d71c4122649bc66e5fb4fe9769680639c7c2f 100644 (file)
@@ -587,7 +587,7 @@ const KeepUrlPath = withStyles(styles)(({auth, res, pdh, classes}: KeepUrlProps
 
     const keepUrlPathNav = getKeepNavUrl(auth, res, pdh);
     return keepUrlPath && keepUrlPathNav ?
-        <Tooltip title={"View in keep-web"}><MuiLink className={classes.keepLink} onClick={() => handleClick(keepUrlPathNav)}>{keepUrlPath}</MuiLink></Tooltip> :
+        <Tooltip title={"View in keep-web"}><a className={classes.keepLink} href={keepUrlPathNav} target="_blank">{keepUrlPath}</a></Tooltip> :
         // Show No value for root collection io that lacks path part
         <EmptyValue />;
 });