10fea59e05
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 <noreply@anthropic.com>