From 887e13888d1892b3b7bce0ae06d21dcd35b3da0b Mon Sep 17 00:00:00 2001 From: miloschwartz Date: Wed, 19 Aug 2026 16:26:44 -0400 Subject: [PATCH] redirect differently for org auth domain --- src/app/auth/resource/[resourceGuid]/page.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/app/auth/resource/[resourceGuid]/page.tsx b/src/app/auth/resource/[resourceGuid]/page.tsx index e3e93ce9d..c3cb00615 100644 --- a/src/app/auth/resource/[resourceGuid]/page.tsx +++ b/src/app/auth/resource/[resourceGuid]/page.tsx @@ -201,7 +201,11 @@ export default async function ResourceAuthPage(props: { // Inference resources never establish a resource session on the inference // host. Authenticated users retrieve their virtual API key on the dashboard. if (isInference && user) { - redirect(keysPath); + if (host !== expectedHost) { + redirect(`/auth/org?redirect=${encodeURIComponent(keysPath)}`); + } else { + redirect(keysPath); + } } // After password/pincode/SSO, do not send the browser back to the