From f390f9329362075f28de8fc67fa86b7b2b23b4bd Mon Sep 17 00:00:00 2001 From: ISA Date: Fri, 19 Sep 2025 13:08:48 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20Dynamische=20Link=20nach=20Host=20f?= =?UTF-8?q?=C3=BCr=20Alarm=20Icon?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 2 +- .env.production | 2 +- components/mainComponent/MapComponent.js | 2 +- package-lock.json | 4 ++-- package.json | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.env.development b/.env.development index 295c06578..6e66a74dc 100644 --- a/.env.development +++ b/.env.development @@ -23,4 +23,4 @@ NEXT_PUBLIC_USE_MOCKS=true # z.B. http://10.10.0.13/xyz/index.aspx -> basePath in config.json auf /xyz setzen # basePath wird jetzt in public/config.json gepflegt # App-Versionsnummer -NEXT_PUBLIC_APP_VERSION=1.1.395 +NEXT_PUBLIC_APP_VERSION=1.1.396 diff --git a/.env.production b/.env.production index 6e7c09baa..217b4dd6c 100644 --- a/.env.production +++ b/.env.production @@ -24,4 +24,4 @@ NEXT_PUBLIC_USE_MOCKS=false # basePath wird jetzt in public/config.json gepflegt # App-Versionsnummer -NEXT_PUBLIC_APP_VERSION=1.1.395 +NEXT_PUBLIC_APP_VERSION=1.1.396 diff --git a/components/mainComponent/MapComponent.js b/components/mainComponent/MapComponent.js index e38cfdd22..c619f42bc 100644 --- a/components/mainComponent/MapComponent.js +++ b/components/mainComponent/MapComponent.js @@ -172,7 +172,7 @@ const MapComponent = ({ locations, onLocationUpdate, lineCoordinates }) => { staticObj.Link.startsWith("http://") || staticObj.Link.startsWith("https://"); alarmLink = isAbsolute ? staticObj.Link - : `${window.location.origin}/talas5/devices/${staticObj.Link}`; + : `http://${window.location.hostname}/talas5/devices/${staticObj.Link}`; // : `http://10.10.0.13/talas5/devices/${staticObj.Link}`; found = true; break; diff --git a/package-lock.json b/package-lock.json index a6fa3691e..a2042bd4d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "nodemap", - "version": "1.1.395", + "version": "1.1.396", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "nodemap", - "version": "1.1.395", + "version": "1.1.396", "dependencies": { "@emotion/react": "^11.13.3", "@emotion/styled": "^11.13.0", diff --git a/package.json b/package.json index cbeb575f4..8cfe0ef4e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "nodemap", - "version": "1.1.395", + "version": "1.1.396", "dependencies": { "@emotion/react": "^11.13.3", "@emotion/styled": "^11.13.0",