Closed
Description
Version
3.1.6
Reproduction link
https://codepen.io/trainiac/pen/rNOZvRO?editors=1112
Steps to reproduce
- create route config like
{
path: '/oldpath/:part',
redirect: (to: Route) => {
if(to.ooopsmistake.part) {
return `/newpath/${to.params.part}`
}
return '/newpath/'
},
}
What is expected?
When router.push('/oldpath/test'). an error is throw becuase there is no oopsmistake property on the to route. This should be caught in router.onError.
What is actually happening?
It's only caught in router.push('/oldpath/test').catch(err is here)