V
V
Vearodev2021-04-06 12:29:07
Vue.js
Vearodev, 2021-04-06 12:29:07

Vue dynamic route redirect to child route?

How to make a redirect to a child route in a dynamic route?
I want to redirect to /products/:id/dashboard when going to /products/:id

{
    path: "/products/:id",
    name: "Product",
    component: productPage,
    children: [
      {
        path: 'dashboard',
        name: 'Dashboard',
        component: productDashboardPage
      },
    ]
}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
grabbee, 2021-04-06
@Vearodev

Normal redirect not working? He seems to pass the parameters himself

{ path: '/search/:user', redirect: { name: 'home' } },

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question