mirror of
https://github.com/expressjs/expressjs.com.git
synced 2026-02-22 03:51:33 +00:00
422 B
422 B
res.location
Set the location header.
res.location('/foo/bar')
res.location('foo/bar')
res.location('http://example.com')
res.location('../login')
res.location('back')
You can use the same kind of urls as in res.redirect().
For example, if your application is mounted at /blog,
the following would set the location header to
/blog/admin:
res.location('admin')