Solutionunvalidated
Follow the recommended Next.js middleware approach from the referenced Vercel issue—perform the redirect via Next.js middleware (or return a proper redirect response in the supported way) so the URL is actually changed after authentication.
e2cd8565-1096-46d5-abd2-2117cff8b19b
Follow the recommended Next.js middleware approach from the referenced Vercel issue—perform the redirect via Next.js middleware (or return a proper redirect response in the supported way) so the URL is actually changed after authentication.