Redirect execute method before

Hi Friend,

i have one question. Can i define redirect and pageBeforeOut in the same router rules? For example i need route to /exit but before that i need execute cleanUser().

{
path: ‘/exit’,
redirect: ‘/login’,
on: {
pageBeforeOut: cleanUser
}
},

Thanks!

Take a look at app.router.navigate.

1 Like