From 7599b37c011c37ca45e088344ad59c0a6d73707f Mon Sep 17 00:00:00 2001 From: Trent Larson Date: Sun, 5 Oct 2025 15:31:08 -0600 Subject: [PATCH] feat: add a 'not found' page --- src/router/index.ts | 10 +++++ src/views/NotFoundView.vue | 86 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 96 insertions(+) create mode 100644 src/views/NotFoundView.vue diff --git a/src/router/index.ts b/src/router/index.ts index 584f7403..4660de52 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -285,6 +285,16 @@ const routes: Array = [ name: "user-profile", component: () => import("../views/UserProfileView.vue"), }, + // Catch-all route for 404 errors - must be last + { + path: "/:pathMatch(.*)*", + name: "not-found", + component: () => import("../views/NotFoundView.vue"), + meta: { + title: "Page Not Found", + requiresAuth: false, + }, + }, ]; const isElectron = window.location.protocol === "file:"; diff --git a/src/views/NotFoundView.vue b/src/views/NotFoundView.vue new file mode 100644 index 00000000..30eff651 --- /dev/null +++ b/src/views/NotFoundView.vue @@ -0,0 +1,86 @@ + + +