From b115491858dda5013872b01cc657b596a36b7722 Mon Sep 17 00:00:00 2001 From: Daniel Date: Wed, 9 Sep 2026 13:36:30 +0200 Subject: [PATCH] =?UTF-8?q?feat:=20the=20assistant=20is=20its=20own=20full?= =?UTF-8?q?=20page=20at=20/assistant=20=E2=80=94=20no=20underlying=20app?= =?UTF-8?q?=20scrolling,=20back=20returns=20home;=20menu=20links=20to=20it?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/js/auth.js | 1 + server.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/public/js/auth.js b/public/js/auth.js index 95067769..85a87cf8 100644 --- a/public/js/auth.js +++ b/public/js/auth.js @@ -472,6 +472,7 @@ document.addEventListener('DOMContentLoaded', function() { // Restore last visited tab (saved by activateTab) var lastTab = null; try { lastTab = localStorage.getItem('ped_last_tab'); } catch(e) {} + if (typeof window !== 'undefined' && window.location && window.location.pathname === '/assistant') lastTab = 'assistant'; if (typeof window.activateTab === 'function') { if (!lastTab || !window.activateTab(lastTab)) { window.activateTab('encounter'); diff --git a/server.js b/server.js index 5de80778..d0e9461d 100644 --- a/server.js +++ b/server.js @@ -171,7 +171,7 @@ function getTemplatedIndex() { // Prime once at boot so first request is fast getTemplatedIndex(); -app.get(['/', '/index.html'], function(req, res) { +app.get(['/', '/index.html', '/assistant'], function(req, res) { var html = getTemplatedIndex(); if (!html) return res.sendFile(INDEX_PATH); res.setHeader('Content-Type', 'text/html; charset=utf-8');