diff --git a/server/web/index.html b/server/web/index.html index 357b01d..a4fc850 100644 --- a/server/web/index.html +++ b/server/web/index.html @@ -2419,7 +2419,17 @@ wallAllocBudget(); getDevices(); } else { - showPage('devices-page'); + // Hiding the tab closes the socket on non-streaming + // pages and returning reconnects here. Keep an open + // audit log visible instead of yanking the admin back + // to the device list. Every other page still moves to + // devices: a terminal session died with the socket, + // and the login page needs to advance with a cached + // token. + const active = document.querySelector('.page.active'); + if (!active || active.id !== 'audit-page') { + showPage('devices-page'); + } getDevices(); } }