chore(webui): remove legacy hash and Events-tab redirects

The #/path rewrite and the /captures, /mappings and /bindings redirects only
kept pre-cutover bookmarks working.
This commit is contained in:
sam committed 2026-09-25 00:36:43 +10:00
1 parent 62e493820c
commit 894b3d280b
5 files changed
+16 -32

No files matched your search

-7
View File
@@ -1,7 +0,0 @@
// Rewrites a legacy `#/path` URL to `/path`.
const legacy = window.location.hash;
if (legacy.startsWith("#/")) {
const path = legacy.slice(1);
window.history.replaceState(null, "", path + window.location.search);
}
-2
View File
@@ -1,5 +1,3 @@
import "./legacy-hash-redirect";
import { createPinia } from "pinia";
import { createApp } from "vue";
-3
View File
@@ -40,9 +40,6 @@ const routes = [
// link, a bookmark or an agent that learned these URLs still lands somewhere
// that works. `nav: false` is what the page registry's test reads to skip
// them -- they are addressed by URL, not offered as destinations.
{ path: "/captures", name: "captures", redirect: "/events?tab=inspector", meta: { label: "Inspector", nav: false } },
{ path: "/mappings", name: "mappings", redirect: "/events?tab=mappings", meta: { label: "Mappings", nav: false } },
{ path: "/bindings", name: "bindings", redirect: "/events?tab=bindings", meta: { label: "Bindings", nav: false } },
{ path: "/system/status", name: "system-status", component: SystemStatusPage, meta: { label: "Status", description: "Update state, configuration sources, and the listen address.", section: "settings" } },
{ path: "/logs", name: "logs", component: LogsPage, meta: { label: "Logs", description: "The daemon log stream, filterable by level and component.", section: "logs" } },
{ path: "/system/appearance", name: "system-appearance", component: SystemAppearancePage, meta: { label: "Appearance", description: "Theme and display preferences." } },