Don't use hep logout in tests
This commit is contained in:
parent
042e21cfd6
commit
b5de0b582c
|
|
@ -153,8 +153,12 @@ function joiningClass(to) {
|
||||||
router.beforeEach(async (to, from, next) => {
|
router.beforeEach(async (to, from, next) => {
|
||||||
if (to.path === '/logout') {
|
if (to.path === '/logout') {
|
||||||
publicApolloClient.resetStore();
|
publicApolloClient.resetStore();
|
||||||
location.replace(`https://sso.hep-verlag.ch/logout?return_to=${process.env.LOGOUT_REDIRECT_URL}`);
|
if (process.env.LOGOUT_REDIRECT_URL) {
|
||||||
next(false);
|
location.replace(`https://sso.hep-verlag.ch/logout?return_to=${process.env.LOGOUT_REDIRECT_URL}`);
|
||||||
|
next(false);
|
||||||
|
} else {
|
||||||
|
next({name: 'hello'});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (unauthorizedAccess(to)) {
|
if (unauthorizedAccess(to)) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue