fix: window.location.pathname statt gestes Wert
This commit is contained in:
@@ -53,7 +53,7 @@ const TDRChartActionBar: React.FC = () => {
|
||||
}),
|
||||
});
|
||||
} else {
|
||||
const url = `/CPL?KTR${slotNumber}=${selectedId}`;
|
||||
const url = `/CPL?/${window.location.pathname}&KTR${slotNumber}=${selectedId}`;
|
||||
await fetch(url, { method: "GET" });
|
||||
}
|
||||
if (!isDev) {
|
||||
@@ -89,7 +89,7 @@ const TDRChartActionBar: React.FC = () => {
|
||||
return;
|
||||
}
|
||||
|
||||
const cgiUrl = `${window.location.origin}/CPL?kabelueberwachung.html&KTT${selectedSlot}=1`;
|
||||
const cgiUrl = `${window.location.origin}/CPL?/${window.location.pathname}&KTT${selectedSlot}=1`;
|
||||
|
||||
try {
|
||||
console.log("🚀 Starte TDR Messung für Slot:", selectedSlot);
|
||||
|
||||
Reference in New Issue
Block a user