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
# basePath wird jetzt in public/config.json gepflegt
# 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
# 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://");
alarmLink = isAbsolute
? 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;
break;
}

4
package-lock.json generated
View File

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

View File

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