From fc7d1452b0a4931388732908cca31e0bdff8b9ca Mon Sep 17 00:00:00 2001 From: yiling Date: Fri, 26 Jun 2026 11:48:38 +0800 Subject: [PATCH] fix(webui): resolve team ID using target location pathname in beforeLoad --- packages/webui/routes/__root.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/webui/routes/__root.tsx b/packages/webui/routes/__root.tsx index 75cf9236..b7b24c92 100644 --- a/packages/webui/routes/__root.tsx +++ b/packages/webui/routes/__root.tsx @@ -127,9 +127,9 @@ interface MyRouterContext { } export const Route = createRootRouteWithContext()({ - beforeLoad: async () => { + beforeLoad: async ({ location }) => { if (typeof window !== 'undefined') { - const pathname = window.location.pathname + const pathname = location.pathname const teamId = await resolveTeamIdFromPath(pathname) if (teamId) {