Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

refactor(ui): drop comments that restate the redirect table and home route

ryan-crabbe-berri2dfa14648a76
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<string, string> = 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 => {