From 31d8ef918c3eb912ecac64b093841d2b81185d17 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 27 Apr 2026 21:44:59 -0500 Subject: [PATCH] =?UTF-8?q?demo:=20contractor=20links=20=E2=80=94=20respec?= =?UTF-8?q?t=20the=20/lakehouse=20path=20prefix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit J reported https://devop.live/contractor?name=3115%20W%20POLK%20ST.%20LLC returned 404. Cause: the anchor href was a bare /contractor, which on devop.live routes to the LLM Team UI (port 5000) at the main site root, not the lakehouse mcp-server (which lives under /lakehouse/*). Every page that renders a contractor link now uses the same prefix detector the dashboard already had: var P = location.pathname.indexOf('/lakehouse') >= 0 ? '/lakehouse' : ''; Files updated: - search.html: entity-brief anchor + preview anchor → P+/contractor - console.html: permit-card contractor list → P+/contractor - contractor.html: history.replaceState + back-link + the /intelligence/contractor_profile fetch all use P prefix. The page is reachable at /lakehouse/contractor on the public URL and bare /contractor on localhost; both work without further config. Verified: https://devop.live/lakehouse/contractor?name=3115%20W%20POLK%20ST.%20LLC → 200, 29.9 KB, full profile renders. Contractor has 1 permit on file (a small LLC), 1 geocoded so the heat map plots one marker. --- mcp-server/console.html | 2 +- mcp-server/contractor.html | 13 +++++++++++-- mcp-server/search.html | 4 ++-- 3 files changed, 14 insertions(+), 5 deletions(-) diff --git a/mcp-server/console.html b/mcp-server/console.html index 56ca178..d2316fd 100644 --- a/mcp-server/console.html +++ b/mcp-server/console.html @@ -319,7 +319,7 @@ function loadChapter4(){ seen.push(n); if(seen.length>1) contractors.appendChild(document.createTextNode(' · ')); var a=document.createElement('a'); - a.href='/contractor?name='+encodeURIComponent(n); + a.href=P+'/contractor?name='+encodeURIComponent(n); a.target='_blank'; a.rel='noopener'; a.style.cssText='color:#58a6ff;text-decoration:none;border-bottom:1px dotted #58a6ff44'; diff --git a/mcp-server/contractor.html b/mcp-server/contractor.html index 85ad7f8..fbf6a15 100644 --- a/mcp-server/contractor.html +++ b/mcp-server/contractor.html @@ -66,6 +66,12 @@ body{font-family:'Inter',-apple-system,system-ui,sans-serif;background:#090c10;c