3.0.6
https://jsfiddle.net/ovk93q5e/
When alias contains additional params
{
path: "/:foo/explore/,
alias: ["/:foo/explore/:extra/bar"],
}
route is matched on both urls, but extra parameter remains unset in $route.params
When decalared in reversed order
{
path: "/:foo/explore/:extra/bar",
alias: ["/:foo/explore/"],
}
Route is matched only by path and not by alias
Route params should contains values according to matched route.
Described in steps to reproduce.
A path and an alias should contain the same amount of params. Otherwise set another route with a redirect. That will allow you to provide a default param
@posva redirect is not solution in my case. I am going to declare another route pointing to same component. (but such solution requires much more effort especially together with Nuxt, alias with different params would be much much easier)
Most helpful comment
@posva redirect is not solution in my case. I am going to declare another route pointing to same component. (but such solution requires much more effort especially together with Nuxt, alias with different params would be much much easier)