- fixed issue of redirecting on registartion page;

This commit is contained in:
Vitalii Kiiko
2024-12-09 16:56:28 +01:00
parent 7edc94e132
commit edbbea19e0

View File

@@ -31,7 +31,7 @@ export class NetworkService {
} else if (status === 403) {
storeSet.main.token('');
const { pathname } = window.location;
if (!['/login', '/loginadmin', '/reset-password'].includes(pathname)) {
if (!['/login', '/loginadmin', '/reset-password', '/registration'].includes(pathname)) {
window.location.replace('/login');
}
}