From 2eeac255f68d53a0420deeb071f471a92bb7b9c8 Mon Sep 17 00:00:00 2001 From: jaakko Date: Tue, 7 Apr 2026 08:52:57 +0300 Subject: [PATCH] Piilotetut paneelit tavoitettavissa hashilla: #network, #laskentaverkko, #codelab Co-Authored-By: Claude Opus 4.6 (1M context) --- network-poc/static/index.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/network-poc/static/index.html b/network-poc/static/index.html index 0d85bd1..03396fa 100644 --- a/network-poc/static/index.html +++ b/network-poc/static/index.html @@ -1708,8 +1708,9 @@ IMPORTANT: Include get_db() dependency for FastAPI` }, // URL-hash navigointi const initHash = window.location.hash.replace('#', ''); - if (['codelab', 'agents', 'guide'].includes(initHash)) { - switchMainTab(initHash); + const hashMap = { 'laskentaverkko': 'network', 'network': 'network', 'codelab': 'codelab', 'agents': 'agents', 'guide': 'guide' }; + if (hashMap[initHash]) { + switchMainTab(hashMap[initHash]); } // Synkronoi coder-status kun WS on jo auki (suora #codelab navigointi)