Page 1 of 1

NotFound page

Posted: 29 Oct 2021, 10:53
by tech.admin
Hi Dear,

I placed a route rule for notFound, but it cannot jump to the whole page. What can i do?

Code: Select all

  {
    // will match everything and put it under `$route.params.pathMatch`    
    path: '/:pathMatch(.*)*',    
    name: 'notfound',
    component: () => import('./pages/NotFound.vue')
  },

Re: NotFound page

Posted: 29 Oct 2021, 11:13
by tech.admin
Hi,

I found a solution.

Code: Select all

  {
    // will match everything and put it under `$route.params.pathMatch`    
    path: '/:pathMatch(.*)*',
    redirect: '/notfound'
  },

Re: NotFound page

Posted: 01 Nov 2021, 08:34
by tugce.kucukoglu
Thanks for the feedback.