From 375b457f48674983cdba493be5411502c2411368 Mon Sep 17 00:00:00 2001 From: "Rodrigo Rodriguez (Pragmatismo)" Date: Wed, 4 Feb 2026 12:52:47 -0300 Subject: [PATCH] Fix login redirect to chat after authentication - Change default redirect from '/' to '/#chat' after successful login - Ensures users go directly to chat interface instead of root --- ui/suite/auth/login.html | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/ui/suite/auth/login.html b/ui/suite/auth/login.html index 5e43e58..355c0d4 100644 --- a/ui/suite/auth/login.html +++ b/ui/suite/auth/login.html @@ -1264,12 +1264,18 @@ // Successful login - redirect if (response.redirect || response.success) { - window.location.href = response.redirect || "/"; + // Check for redirect parameter in URL + const urlParams = new URLSearchParams(window.location.search); + const redirectUrl = urlParams.get('redirect') || response.redirect || "/#chat"; + window.location.href = redirectUrl; } } catch (e) { // If response is not JSON, check for redirect header if (event.detail.xhr.status === 200) { - window.location.href = "/"; + // Check for redirect parameter in URL + const urlParams = new URLSearchParams(window.location.search); + const redirectUrl = urlParams.get('redirect') || "/#chat"; + window.location.href = redirectUrl; } } } else {