mirror of https://github.com/apache/cloudstack.git
Fixing multiple redirects on logout (#771)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
parent
eda6929b79
commit
57b67e0b2a
|
|
@ -59,7 +59,9 @@ const err = (error) => {
|
|||
duration: 0
|
||||
})
|
||||
store.dispatch('Logout').then(() => {
|
||||
router.push({ path: '/user/login', query: { redirect: router.history.current.fullPath } })
|
||||
if (router.history.current.path !== '/user/login') {
|
||||
router.push({ path: '/user/login', query: { redirect: router.history.current.fullPath } })
|
||||
}
|
||||
})
|
||||
}
|
||||
if (response.status === 404) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue