From f4e7dd5bb6bd6adf3cf86002fe54c676b60b0066 Mon Sep 17 00:00:00 2001 From: oOHiyoriOo Date: Sat, 13 Jun 2026 18:26:08 +0200 Subject: [PATCH] fix: empty server page on reload with cached connection Router.go() sets window.location.hash, but when the hash already matches (e.g. F5 reload at /#/addr/info then clicking a saved connection), hashchange doesn't fire and the router never re-renders. Switched to Router.navigate() which processes the route directly regardless of current hash. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- js/app.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/js/app.js b/js/app.js index 65e5a83..8b72adf 100644 --- a/js/app.js +++ b/js/app.js @@ -93,7 +93,9 @@ Rcon.on('connected', function () { var addr = Rcon.getAddress(); showConnected(addr); - Router.go('#/' + addr + '/info'); + // navigate() directly so it works even when the hash already matches + // (e.g. F5 reload then clicking a saved connection) + Router.navigate('#/' + addr + '/info'); }); Rcon.on('disconnected', function () {