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

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