Fix: Use absolute URL for bulk rate update to avoid path resolution issues (v1.3.54)

This commit is contained in:
Christian 2025-12-23 15:03:49 +01:00
parent 641698be8b
commit 64e85da71c

View File

@ -928,7 +928,9 @@
const customerIds = Array.from(selectedCustomers); const customerIds = Array.from(selectedCustomers);
try { 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', method: 'POST',
headers: {'Content-Type': 'application/json'}, headers: {'Content-Type': 'application/json'},
body: JSON.stringify({ body: JSON.stringify({