Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

fix(auth): enforce dark mode on auth pages (#8238)

Andrew Huang0250ecfe803d
diff --git a/frontend/src/pages/root.tsx b/frontend/src/pages/root.tsx
index 8c286bf466..264edff6e0 100644
--- a/frontend/src/pages/root.tsx
+++ b/frontend/src/pages/root.tsx
@@ -47,7 +47,7 @@ const RootCommandMenuMount = () => {
};
const RootPage = () => {
- const pathname = useRouterState({ select: (state) => state.resolvedLocation.pathname });
+ const pathname = useRouterState({ select: (state) => state.location.pathname });
return (
<ThemeProvider pathname={pathname}>
<TooltipProvider>