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 @@ + + +