Fix relative same host redirects in node middleware (#88253)
This ensures we properly relativize URLs in node middleware when
deployed and local. Tests weren't catching this previously as none were
asserting the raw Location header value due to node-fetch auto-resolving
the value.
Fixes: https://github.com/vercel/next.js/issues/87950
Closes: NEXT-4826