fix: Dynamiche Link je nach Host

This commit is contained in:
ISA
2025-09-19 13:04:13 +02:00
parent 4f0527e8a9
commit 28dcb284bf
5 changed files with 7 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 # 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 # basePath wird jetzt in public/config.json gepflegt
# App-Versionsnummer # App-Versionsnummer
NEXT_PUBLIC_APP_VERSION=1.1.394 NEXT_PUBLIC_APP_VERSION=1.1.395

View File

@@ -24,4 +24,4 @@ NEXT_PUBLIC_USE_MOCKS=false
# basePath wird jetzt in public/config.json gepflegt # basePath wird jetzt in public/config.json gepflegt
# App-Versionsnummer # App-Versionsnummer
NEXT_PUBLIC_APP_VERSION=1.1.394 NEXT_PUBLIC_APP_VERSION=1.1.395

View File

@@ -172,7 +172,8 @@ const MapComponent = ({ locations, onLocationUpdate, lineCoordinates }) => {
staticObj.Link.startsWith("http://") || staticObj.Link.startsWith("https://"); staticObj.Link.startsWith("http://") || staticObj.Link.startsWith("https://");
alarmLink = isAbsolute alarmLink = isAbsolute
? staticObj.Link ? staticObj.Link
: `http://10.10.0.13/talas5/devices/${staticObj.Link}`; : `${window.location.origin}/talas5/devices/${staticObj.Link}`;
// : `http://10.10.0.13/talas5/devices/${staticObj.Link}`;
found = true; found = true;
break; break;
} }

4
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{ {
"name": "nodemap", "name": "nodemap",
"version": "1.1.394", "version": "1.1.395",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "nodemap", "name": "nodemap",
"version": "1.1.394", "version": "1.1.395",
"dependencies": { "dependencies": {
"@emotion/react": "^11.13.3", "@emotion/react": "^11.13.3",
"@emotion/styled": "^11.13.0", "@emotion/styled": "^11.13.0",

View File

@@ -1,6 +1,6 @@
{ {
"name": "nodemap", "name": "nodemap",
"version": "1.1.394", "version": "1.1.395",
"dependencies": { "dependencies": {
"@emotion/react": "^11.13.3", "@emotion/react": "^11.13.3",
"@emotion/styled": "^11.13.0", "@emotion/styled": "^11.13.0",