Config redirects erroneously match _next/data requests when middleware.ts is present, breaking client-side navigation
When middleware.ts exists, Next.js normalizes _next/data URLs before config redirects run, causing redirects to match internal data requests and return props from the wrong page. This breaks client-side navigation, while the absence of middleware avoids the issue.
