Skip to content

v2.0.0-rc.5

Pre-release
Pre-release
Compare
Choose a tag to compare
@yyx990803 yyx990803 released this 13 Sep 19:44
· 1286 commits to dev since this release

New

  • Route config redirect option now supports using a function, which receives the target route as the argument and should return redirect destination. See example. (@fnlctrl)
  • The redirect option's value can now be any valid location descriptor. By default, the query and hash of the original route will be passed along to the redirected route - however they can now be explicitly overwritten by the redirect option when using the object location descriptor (or by returning it from a function).

Fixed

  • #625 fix beforeRouteEnter for async components
  • #628 Allow trailing slashes in path comparison (@fnlctrl)
  • #629 add warning when named route has a default child route (@LinusBorg)
  • #635 fix active link matching for named routes + exact
  • vuejs/#3667 fix beforeRouteEnter next hook vm instance context