This commit is contained in:
Simon
2025-07-17 18:29:15 +02:00
committed by GitHub
parent 75a3f8dea4
commit 749b031db1
+4 -1
View File
@@ -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"}>
<SignIn fill="text-background/80"/>
</Button>
</Tooltip>