From ed07eecad4352950e0f1f7d04de56705fa65f926 Mon Sep 17 00:00:00 2001 From: Louis Date: Mon, 2 Mar 2026 11:04:40 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B(frontend)=20fix=20fallback=20redir?= =?UTF-8?q?ect=20to=20always=20go=20to=20/mail-domains/?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The ternary was incorrectly inverted, causing users to be sent to /teams/ when TEAMS_DISPLAY was off. Simplify to always redirect to /mail-domains/ as the fallback. --- src/frontend/apps/desk/src/pages/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend/apps/desk/src/pages/index.tsx b/src/frontend/apps/desk/src/pages/index.tsx index 863ddc8b..f598965b 100644 --- a/src/frontend/apps/desk/src/pages/index.tsx +++ b/src/frontend/apps/desk/src/pages/index.tsx @@ -29,7 +29,7 @@ const Page: NextPageWithLayout = () => { } // Fallback to the default route according to global config - router.push(config?.FEATURES.TEAMS_DISPLAY ? '/mail-domains/' : '/teams/'); + router.push('/mail-domains/'); }, [config?.FEATURES.TEAMS_DISPLAY, userData, router]); return null;