From 499f05b96d6aff6128a3690acf21823061db0570 Mon Sep 17 00:00:00 2001 From: David Barry Date: Tue, 5 Mar 2024 10:53:53 +0000 Subject: [PATCH] TD-1854 Open current app link in the current tab (#826) * reload current app in the same page and new apps in new tab * 7.0.3-0 * empty not self * 7.0.3-1 --- package-lock.json | 4 ++-- package.json | 2 +- src/AppLauncher/AppLauncher.tsx | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package-lock.json b/package-lock.json index 270dcb48..498dca34 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@ipguk/react-ui", - "version": "7.0.2", + "version": "7.0.3-1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@ipguk/react-ui", - "version": "7.0.2", + "version": "7.0.3-1", "license": "MIT", "dependencies": { "@juggle/resize-observer": "^3.4.0", diff --git a/package.json b/package.json index 58c814b8..e60bf2f7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@ipguk/react-ui", - "version": "7.0.2", + "version": "7.0.3-1", "description": "React UI component library for IPG web applications", "author": "IPG-Automotive-UK", "license": "MIT", diff --git a/src/AppLauncher/AppLauncher.tsx b/src/AppLauncher/AppLauncher.tsx index 53fefa38..ab72696b 100644 --- a/src/AppLauncher/AppLauncher.tsx +++ b/src/AppLauncher/AppLauncher.tsx @@ -128,7 +128,7 @@ function AppLauncher({ key={app.name} component="a" href={app.url} - target="_blank" + target={window.location.href.startsWith(app.url) ? "" : "_blank"} data-testid={app.name} sx={theme => ({ "&:hover": {