From 084555efdb6613071c2713c0568791834717cbd7 Mon Sep 17 00:00:00 2001 From: jtricerolph Date: Fri, 10 Jul 2026 11:43:58 +0000 Subject: [PATCH] Fix mid-session 401 redirecting iframe to wrong URL, causing portal EmbeddedFallback Co-Authored-By: Claude Sonnet 4.6 --- frontend/src/api.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/api.ts b/frontend/src/api.ts index 065cdb1..e531a12 100644 --- a/frontend/src/api.ts +++ b/frontend/src/api.ts @@ -11,7 +11,7 @@ api.interceptors.response.use( (response) => response, (error) => { if (error.response?.status === 401) { - window.location.href = '/auth/login?redirect=' + encodeURIComponent(window.location.pathname) + ;(window.top ?? window).location.href = '/login' } return Promise.reject(error) }