From 544ccc9773b12d4fdb534e82b7f818e040fd4583 Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 29 Apr 2026 23:07:51 +0000 Subject: [PATCH] fix(web): redirect /sign-on and /sign-in aliases to /login Users hitting /sign-on (or /signon, /sign-in, /signin) from external links, bookmarks, or marketing material were getting a 404 because the canonical auth route is /login. Add permanent (308) redirects in next.config.js so these aliases resolve to /login while preserving any query string (e.g. ?redirectTo=...). https://claude.ai/code/session_013ethRW9NqTnVekzxjDXbRT --- apps/web/next.config.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/apps/web/next.config.js b/apps/web/next.config.js index 80f62716..3e27ddee 100644 --- a/apps/web/next.config.js +++ b/apps/web/next.config.js @@ -15,6 +15,14 @@ const nextConfig = { }, ], }, + async redirects() { + return [ + { source: '/sign-on', destination: '/login', permanent: true }, + { source: '/signon', destination: '/login', permanent: true }, + { source: '/sign-in', destination: '/login', permanent: true }, + { source: '/signin', destination: '/login', permanent: true }, + ]; + }, }; module.exports = withPWA({