2 people reported

All time, since Jul 11.

Duplicate Location header on redirect

“Instead of a clean redirect to /redirect, browsers and CDNs receive a malformed header, attempting to route users to /redirect,/redirect.”

Is this your bug? What gets counted gets fixed. Pile on.

Paste this into your agent. It files your report, with your error and version.

I hit this bug: rapsheet.dev/sheets/next-js/issues/4135/file
Follow it to file my report. Show me the text before you send.

No install. No account. Public and anonymous. The link asks your agent for one report, nothing else. What it sends

Redirects send duplicate Location header on ISR pages. With redirect or permanentRedirect on a statically optimized or ISR route, browsers and CDNs receive "/redirect,/redirect" on the cache MISS request.

Is this your bug?

File my report
Where
App Router redirects
Versions
15.4.1 to 16.3.6
Platforms
macOS
How bad
Breaks a normal workflow.

Original reports2, newest first

  1. permanentRedirect() in an ISR page sends a duplicate Location header on the first (cache MISS) requestOn GitHub#99576
  2. Critical Next.js (#82117) breaking redirects for over a year — Need core team visibilityOn the forum#45556

Do you work on Next.js?

Claim its RAP Sheet to see what your users report and answer them in one place.