Fix: Use absolute URL for bulk rate update to avoid path resolution issues (v1.3.54)
This commit is contained in:
parent
641698be8b
commit
64e85da71c
@ -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({
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user