From 2dfa14648a76eb2b249808aaf0e617cadb8d7b21 Mon Sep 17 00:00:00 2001 From: ryan-crabbe-berri Date: Sat, 5 Sep 2026 16:50:20 -0700 Subject: [PATCH] refactor(ui): drop comments that restate the redirect table and home route --- ui/litellm-dashboard/src/app/(dashboard)/legacyPageRoutes.ts | 2 -- ui/litellm-dashboard/src/components/leftnav.tsx | 1 - 2 files changed, 3 deletions(-) diff --git a/ui/litellm-dashboard/src/app/(dashboard)/legacyPageRoutes.ts b/ui/litellm-dashboard/src/app/(dashboard)/legacyPageRoutes.ts index 5c8a22fe795..cf943b331b9 100644 --- a/ui/litellm-dashboard/src/app/(dashboard)/legacyPageRoutes.ts +++ b/ui/litellm-dashboard/src/app/(dashboard)/legacyPageRoutes.ts @@ -1,7 +1,5 @@ import { uiHref } from "@/utils/uiHref"; -// Old ?page= bookmarks and the proxy's MCP env-var setup link still land on the UI root; -// this table sends them to the path route that replaced each page id. const LEGACY_PAGE_ROUTES: ReadonlyMap = new Map( Object.entries({ "api-keys": "api-keys", diff --git a/ui/litellm-dashboard/src/components/leftnav.tsx b/ui/litellm-dashboard/src/components/leftnav.tsx index 255bbc04735..9d772f45153 100644 --- a/ui/litellm-dashboard/src/components/leftnav.tsx +++ b/ui/litellm-dashboard/src/components/leftnav.tsx @@ -366,7 +366,6 @@ const HOME_ROUTE = "api-keys"; const routeOf = (item: MenuItem): string => item.route ?? item.page; -// The dashboard root serves Virtual Keys, so an empty segment selects that entry. const routeForPathname = (pathname: string): string => routeSegmentForPathname(pathname) || HOME_ROUTE; const findParentKey = (route: string): string | null => {