From 042e21cfd61b35b06c6faedc8a4f4aadd78e0ec4 Mon Sep 17 00:00:00 2001 From: Christian Cueni Date: Wed, 21 Jul 2021 08:28:44 +0200 Subject: [PATCH] Redirect to hep in logout path --- client/src/main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/main.js b/client/src/main.js index 67755f16..5d073534 100644 --- a/client/src/main.js +++ b/client/src/main.js @@ -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)) {