CODEFOSSIL · express
res.location
method in lib/response.js:796 · Born 2013-01-13 (DERIVED, confidence 1.00)
Changed Delete `back` as a magic string (#5933)
bdd81f8· Blake EmbreyChanged deps: encodeurl@~2.0.0 (#5569)
bf91946· Blake EmbreyChanged Improved fix for open redirect allow list bypass
0b74695· Wes Todd fix · INFERREDChanged Improved fix for open redirect allow list bypass
da4d763· Wes Todd fix · INFERREDChanged Allow passing non-strings to res.location with new encoding handling checks fixes #5554 #5555
a003cfa· Wes Todd fix · INFERREDChanged Prevent open redirect allow list bypass due to encodeurl
0867302· FDrag0nChanged Encode URL in res.location/res.redirect if not already encoded
76eaa32· Douglas Christopher WilsonChanged perf: remove argument reassignments in response prototype
bb53b20· Douglas Christopher WilsonChanged Fix original URL parsing in res.location
a57efea· Douglas Christopher Wilson fix · INFERREDChanged res.location: remove resolving relative urls
aac1d52· Jonathan OngChanged ocd
8a7a695· TJ HolowaychukChanged fixes #1826: res.redirect('toString') fails with 500
2f2a652· Michael Ficarra fix · INFERREDChanged Use url.resolve to compute location header of relative paths
b7a38af· Jérémy LalChanged semicolons
6619147· Jérémy LalChanged Test cases document this.
04b0c44· Michael AhlersChanged This works as expected, and has limited scope.
956aa0c· Michael AhlersChanged Proposal to allow relative redirects for applications that have been mounted at multiple paths.
d874476· Michael AhlersBorn implemented res.location
a4d7b75· Julian Gruber