diff --git a/src/store/index.js b/src/store/index.js index 4635faacb006801588174eedf8f8bc9de42b4e62..df23ac617d8949f73cefaedb30b23bb557d239c4 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) => {