Redirect to hep in logout path
This commit is contained in:
parent
7e0a240911
commit
042e21cfd6
|
|
@ -153,8 +153,8 @@ 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();
|
||||||
next({name: 'hello'});
|
location.replace(`https://sso.hep-verlag.ch/logout?return_to=${process.env.LOGOUT_REDIRECT_URL}`);
|
||||||
return;
|
next(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (unauthorizedAccess(to)) {
|
if (unauthorizedAccess(to)) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue