fix: Dynamische Link nach Host für Alarm Icon

This commit is contained in:
ISA
2025-09-19 13:08:48 +02:00
parent 28dcb284bf
commit f390f93293
5 changed files with 6 additions and 6 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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;

4
package-lock.json generated
View File

@@ -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",

View File

@@ -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",