From 10fea59e050259db21cdbd47af28c2749e665048 Mon Sep 17 00:00:00 2001 From: rogalik27 Date: Thu, 25 Jun 2026 09:39:34 +0200 Subject: [PATCH] Fix dashboard 404: derive API base from page path Opening the dashboard at /crm (no trailing slash) made the relative `api/leads` fetch resolve to /api/leads -> 404. Derive the API base from location.pathname so it works at both /crm and /crm/. Co-Authored-By: Claude Opus 4.8 --- backoffice/app/static/index.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/backoffice/app/static/index.html b/backoffice/app/static/index.html index e629ade..6ae3c84 100644 --- a/backoffice/app/static/index.html +++ b/backoffice/app/static/index.html @@ -98,7 +98,10 @@