From ee470abd5ee327f8d20cd02f25f10e33ca26a98c Mon Sep 17 00:00:00 2001 From: Alex Zhu Date: Thu, 30 Apr 2026 15:44:03 +0800 Subject: [PATCH] fix: correct global 404 catch-all route path (#11730) Co-authored-by: Claude Opus 4.7 --- config/routes.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/config/routes.ts b/config/routes.ts index 22c7adb4..4545fe74 100644 --- a/config/routes.ts +++ b/config/routes.ts @@ -37,6 +37,7 @@ export default [ component: './user/register', }, { + name: '404', component: './404', path: '/user/*', }, @@ -290,7 +291,8 @@ export default [ redirect: '/dashboard/analysis', }, { + name: '404', component: './404', - path: './*', + path: '/*', }, ];