From 2498f4aedd91ecd733343e13470d0d6c2320a85c Mon Sep 17 00:00:00 2001 From: Craig Stephenson Date: Fri, 5 Jan 2024 15:57:01 -0900 Subject: [PATCH] Redirect bad URL routes to the front page. --- nuxt.config.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/nuxt.config.js b/nuxt.config.js index da953da5..0980bf53 100644 --- a/nuxt.config.js +++ b/nuxt.config.js @@ -128,6 +128,11 @@ export default { path: '/report/:lat/:lng', component: resolve(__dirname, 'pages/index'), }) + routes.push({ + name: 'default', + path: '*', + redirect: '/', + }) }, },