When using an AppBar with VTabs containing links, it is not possible to make the VTab button active for a route other than the one passed in :to. Adding a non-mandatory to-matches array property would make the link active if the named route is included in the to-matches prop.
Proposed solution
Add a to-matches array property for all components actually having a :to prop and update the useLink composable in the router.mjs in order to return true if the route is included in the to-matches property.
Describe alternatives you've considered
Updating the router configuration with all the matches routes for a given route or updating the useLink composable, but actually we can't replace a specific composable.
What problem is this solving
When using an AppBar with VTabs containing links, it is not possible to make the VTab button active for a route other than the one passed in :to. Adding a non-mandatory
to-matches
array property would make the link active if the named route is included in theto-matches
prop.Proposed solution
Add a
to-matches
array property for all components actually having a:to
prop and update the useLink composable in the router.mjs in order to return true if the route is included in theto-matches
property.Describe alternatives you've considered
Updating the router configuration with all the matches routes for a given route or updating the useLink composable, but actually we can't replace a specific composable.