From 749b031db16a55b8aa117ebef25a6d02cf6aa6f4 Mon Sep 17 00:00:00 2001 From: Simon <9295182+grimsi@users.noreply.github.com> Date: Thu, 17 Jul 2025 18:29:15 +0200 Subject: [PATCH] Fix #630 (#631) --- app/src/main/frontend/views/MainLayout.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/src/main/frontend/views/MainLayout.tsx b/app/src/main/frontend/views/MainLayout.tsx index 516f28d..080bb16 100644 --- a/app/src/main/frontend/views/MainLayout.tsx +++ b/app/src/main/frontend/views/MainLayout.tsx @@ -115,7 +115,10 @@ export default function MainLayout() { radius="full" isIconOnly className="gradient-primary" - onPress={() => navigate("/login")}> + /* This is hacky but works since "/loginredirect" is not configured and returns 401 for not logged-in users. + This triggers Hilla to redirect to the correct login page (integrated or SSO) automatically. + Otherwise, SSO login would not be possible if we redirect to "/login" directly */ + onPress={() => window.location.href = "/loginredirect"}>