Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

fix(app): apply custom base path to sign-out callback URL (#12036)

Hyeonchan Hwangbfe9c303b411
diff --git a/web/src/components/layouts/app-layout/index.tsx b/web/src/components/layouts/app-layout/index.tsx
index a8ae73e5a3..cb4fd38b00 100644
--- a/web/src/components/layouts/app-layout/index.tsx
+++ b/web/src/components/layouts/app-layout/index.tsx
@@ -132,7 +132,9 @@ export function AppLayout(props: PropsWithChildren) {
if (env.NEXT_PUBLIC_POSTHOG_KEY && env.NEXT_PUBLIC_POSTHOG_HOST) {
posthog.reset();
}
- await signOut({ callbackUrl: `/auth/sign-in` });
+ await signOut({
+ callbackUrl: `${env.NEXT_PUBLIC_BASE_PATH ?? ""}/auth/sign-in`,
+ });
};
return (