mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-03 04:12:31 +01:00
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…
x
Reference in New Issue
Block a user