🐛 fix(utils): Login redirect url
This commit is contained in:
parent
829edfa824
commit
cbe5f0d509
@ -44,7 +44,7 @@ export function Logout() {
|
|||||||
const cookies = new Cookies(null, { path: '/' });
|
const cookies = new Cookies(null, { path: '/' });
|
||||||
cookies.remove('Authorization');
|
cookies.remove('Authorization');
|
||||||
const pathname = location.pathname;
|
const pathname = location.pathname;
|
||||||
if (!['', '/'].includes(pathname)) {
|
if (!['', '/', '/auth', '/tos'].includes(pathname)) {
|
||||||
setRedirectUrl(location.pathname);
|
setRedirectUrl(location.pathname);
|
||||||
location.href = `/`;
|
location.href = `/`;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user