From 9fa2e3acb7e190b643b81ea8cecd7ea155dbf2bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timoth=C3=A9e=20Poussard?= <tpoussard@neogeo.fr> Date: Fri, 28 Jan 2022 16:10:19 +0100 Subject: [PATCH] disable redirect to project list page after logout in shared project --- src/store/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/store/index.js b/src/store/index.js index 4635faac..df23ac61 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -203,7 +203,9 @@ export default new Vuex.Store({ commit('SET_USER', false); commit('SET_USER_LEVEL_PROJECTS', null); dispatch('GET_USER_LEVEL_PERMISSIONS'); - if (router.history.current.name !== 'index') router.push('/'); + if (router.history.current.name !== 'index' && !window.location.pathname.includes('projet-partage')) { + router.push('/'); + } } }) .catch((error) => { -- GitLab