Skip to content

Commit

Permalink
Redirect bad URL routes to the front page. (#644)
Browse files Browse the repository at this point in the history
  • Loading branch information
cstephen committed May 8, 2024
1 parent a9a4246 commit e99fe2c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions nuxt.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,11 @@ export default {
path: '/report/:lat/:lng',
component: resolve(__dirname, 'pages/index'),
})
routes.push({
name: 'default',
path: '*',
redirect: '/',
})
},
},

Expand Down

0 comments on commit e99fe2c

Please sign in to comment.