Skip to content

Commit

Permalink
#308 All bad routes redirected to root url
Browse files Browse the repository at this point in the history
  • Loading branch information
TusharKarkera22 committed May 22, 2024
1 parent b95cfce commit d4bd45c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/router/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,11 @@ const routes = [
component: () => import('pages/governance/GovernanceDocumentation.vue'),
name: 'governance',
},
// Bad Routes
{
path: '/:pathMatch(.*)*',
redirect: '/',
},
];

// Always leave this as last one
Expand Down

0 comments on commit d4bd45c

Please sign in to comment.