Vue-router alias with fixed param
Using optional parameters (append ?) will solve this. You won't even need the alias:
router = new Router({
routes: [
{
path: '/:language?/about',
component: About
}
]
})
Using optional parameters (append ?) will solve this. You won't even need the alias:
router = new Router({
routes: [
{
path: '/:language?/about',
component: About
}
]
})