From 51818044b159264c73da086eb55284d102ef47c0 Mon Sep 17 00:00:00 2001 From: miloschwartz Date: Tue, 13 Jan 2026 15:48:07 -0800 Subject: [PATCH] fix broken redirect url on custom auth url login --- .../private/ValidateSessionTransferToken.tsx | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/components/private/ValidateSessionTransferToken.tsx b/src/components/private/ValidateSessionTransferToken.tsx index c83b61ba..cdd3cb34 100644 --- a/src/components/private/ValidateSessionTransferToken.tsx +++ b/src/components/private/ValidateSessionTransferToken.tsx @@ -50,9 +50,13 @@ export default function ValidateSessionTransferToken( } if (doRedirect) { - // add redirect param to dashboardUrl if provided - const fullUrl = `${env.app.dashboardUrl}${props.redirect || ""}`; - router.push(fullUrl); + if (props.redirect && props.redirect.startsWith("http")) { + router.push(props.redirect); + } else { + // add redirect param to dashboardUrl if provided + const fullUrl = `${env.app.dashboardUrl}${props.redirect || ""}`; + router.push(fullUrl); + } } }