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');