From 64e85da71c48bbabb8266985a723ab42069186dd Mon Sep 17 00:00:00 2001 From: Christian Date: Tue, 23 Dec 2025 15:03:49 +0100 Subject: [PATCH] Fix: Use absolute URL for bulk rate update to avoid path resolution issues (v1.3.54) --- app/timetracking/frontend/customers.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/timetracking/frontend/customers.html b/app/timetracking/frontend/customers.html index a7a42e6..a5c34e5 100644 --- a/app/timetracking/frontend/customers.html +++ b/app/timetracking/frontend/customers.html @@ -928,7 +928,9 @@ const customerIds = Array.from(selectedCustomers); try { - const response = await fetch('/api/v1/timetracking/customers/bulk-update-rate', { + // Use window.location.origin to ensure absolute URL + const apiUrl = `${window.location.origin}/api/v1/timetracking/customers/bulk-update-rate`; + const response = await fetch(apiUrl, { method: 'POST', headers: {'Content-Type': 'application/json'}, body: JSON.stringify({