From dc7fca4f4c634d3fb100bb1091c59bfcbd3a8087 Mon Sep 17 00:00:00 2001 From: Ajay Bura Date: Tue, 19 Oct 2021 20:23:15 +0530 Subject: [PATCH] SSO login bug fixed Signed-off-by: Ajay Bura --- src/app/templates/auth/Auth.jsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/app/templates/auth/Auth.jsx b/src/app/templates/auth/Auth.jsx index f2d2b1eb..6586e588 100644 --- a/src/app/templates/auth/Auth.jsx +++ b/src/app/templates/auth/Auth.jsx @@ -95,7 +95,8 @@ function Auth() { const baseUrl = localStorage.getItem(cons.secretKey.BASE_URL); auth.loginWithToken(baseUrl, loginToken) .then(() => { - window.location.replace('/'); + const { href } = window.location; + window.location.replace(href.slice(0, href.indexOf('?'))); }) .catch((error) => { changeProcess(null); @@ -314,7 +315,7 @@ function Auth() { -
+
{`${(type === 'login' ? 'Don\'t have' : 'Already have')} an account?`}