diff --git a/public/index.html b/public/index.html index bf4f25b7..56f06adb 100644 --- a/public/index.html +++ b/public/index.html @@ -88,7 +88,7 @@ - + diff --git a/public/traces.js b/public/traces.js index bd64f09a..1614d9b2 100644 --- a/public/traces.js +++ b/public/traces.js @@ -5,10 +5,10 @@ let currentHash = null; let traceData = []; let packetMeta = null; - function init(app) { - // Check URL for pre-filled hash + function init(app, routeParam) { + // Check URL for pre-filled hash — support both route param and query param const params = new URLSearchParams(location.hash.split('?')[1] || ''); - const urlHash = params.get('hash') || ''; + const urlHash = routeParam || params.get('hash') || ''; app.innerHTML = `