From 61aa8e6ead06fdcb6096acca7a6e89aa12daffad Mon Sep 17 00:00:00 2001 From: Ryan Salazar Date: Fri, 8 May 2026 20:37:41 +0000 Subject: [PATCH] next.config: fix /login redirect self-loop, point at /client-login --- next.config.mjs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/next.config.mjs b/next.config.mjs index 6ef1a95..239bc71 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -84,12 +84,12 @@ const nextConfig = { }, { source: '/wp-login.php', - destination: '/login', + destination: '/client-login', permanent: true, }, { source: '/wp-login.php/:path*', - destination: '/login', + destination: '/client-login', permanent: true, }, // Catch-all for any other wp-admin sub-paths @@ -112,18 +112,18 @@ const nextConfig = { }, { source: '/avbeat/wp-login.php', - destination: '/login', + destination: '/client-login', permanent: true, }, { source: '/avbeat/wp-login.php/:path*', - destination: '/login', + destination: '/client-login', permanent: true, }, - // Login aliases + // Login alias — /login redirects to canonical /client-login { source: '/login', - destination: '/login', + destination: '/client-login', permanent: false, }, ];