diff --git a/src/app/templates/auth/Auth.jsx b/src/app/templates/auth/Auth.jsx index f2d2b1e..6586e58 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?`}