Redirect to hep in logout path

This commit is contained in:
Christian Cueni 2021-07-21 08:28:44 +02:00
parent 7e0a240911
commit 042e21cfd6
1 changed files with 2 additions and 2 deletions

View File

@ -153,8 +153,8 @@ function joiningClass(to) {
router.beforeEach(async (to, from, next) => {
if (to.path === '/logout') {
publicApolloClient.resetStore();
next({name: 'hello'});
return;
location.replace(`https://sso.hep-verlag.ch/logout?return_to=${process.env.LOGOUT_REDIRECT_URL}`);
next(false);
}
if (unauthorizedAccess(to)) {