From 6edc1c1508b37d16c19f98249191eb58b6e886ae Mon Sep 17 00:00:00 2001 From: overthelex Date: Thu, 2 Jul 2026 14:56:29 +0300 Subject: [PATCH] fix: serve SPA for /contacts direct navigation Add "contacts" to the server-side SPA fallback PAGES so a direct load of /contacts returns the dashboard (the client-side nav already handles it). Co-Authored-By: Claude Opus 4.8 (1M context) --- src/server.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server.ts b/src/server.ts index 541b103..1263f1e 100644 --- a/src/server.ts +++ b/src/server.ts @@ -293,7 +293,7 @@ app.get("/health", async (_req, res) => { }); // SPA fallback -const PAGES = ["dashboard", "leads", "conversations", "messages", "outreach", "campaigns", "posts", "search", "sync", "activity", "analytics", "pipeline", "deals", "follow-ups", "chat", "holidays"]; +const PAGES = ["dashboard", "leads", "conversations", "messages", "outreach", "campaigns", "posts", "search", "sync", "activity", "analytics", "pipeline", "deals", "follow-ups", "chat", "holidays", "contacts"]; for (const p of PAGES) { app.get(`/${p}`, (_req, res) => { res.sendFile(join(__dirname, "web/public/index.html"));