commit 9d0bd5e42050b088e50834b294571d19a7f359e4
parent 127dc9b41ac18403674eefc047597dc6d12710e9
Author: Bharatvaj Hemanth <bharatvaj@yahoo.com>
Date: Sat, 19 Sep 2026 05:51:15 +0530
parent 127dc9b41ac18403674eefc047597dc6d12710e9
Author: Bharatvaj Hemanth <bharatvaj@yahoo.com>
Date: Sat, 19 Sep 2026 05:51:15 +0530
Skip Signet app bootstrap for /pim/ paths Add early return in boot() to prevent Signet app from initializing when accessing /pim/ routes. This allows the static PIM portal files to be served directly by lighttpd without interference. Check: if location.pathname starts with '/pim/', skip app initialization. PIM portal will load its own pim.js and auth logic. Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/www/app.js b/www/app.js @@ -742,6 +742,7 @@ function route() { } async function boot() { + if (location.pathname.startsWith('/pim/')) return; // Let static PIM portal handle /pim/ paths try { app.me = await api('/me'); } catch (e) { const local = ['localhost', '127.0.0.1'].includes(location.hostname); if (e.status === 401 && local) {
: asapien/signet