Closed
Description
What problem does this feature solve?
when doing router.replace('url')
, next('otherUrl')
will cause this navigation become router.push
.
when doing router.push('url')
, next({..., replace: true})
will cause this navigation become router.replace
.
want to know current navigating statue inside guards to solve this problem.
What does the proposed API look like?
beforeEach: (to, from, next, infos) => {
console.log(info.replace) // true or false
}
or:
beforeEach: (to, from, next) => {
console.log(to.replace) // true or false
}
Metadata
Metadata
Assignees
Labels
No labels