Skip to content
Myr

docs

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Tj Holowaychuk · committed by Tj Holowaychuk · parent 41786bc · Browse files · 1 file+13 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+13 added−0 removed

  • other:+13 added−0 removed

1 file+13 added−0 removed

modified:lib/response.js+13 added
430 unmodified lines
431 * res.redirect('/foo/bar');432 * res.redirect('http://example.com');433 * res.redirect(301, 'http://example.com');434 *435 * Mounting:436 *437 * When an application is mounted, and `res.redirect()`438 * is given a path that does _not_ lead with "/". For 439 * example suppose a "blog" app is mounted at "/blog",440 * the following redirect would result in "/blog/login":441 *442 * res.redirect('login');443 *444 * While the leading slash would result in a redirect to "/login":445 *446 * res.redirect('/login');447 *448 * Redirect Mapping:449 * 450 * To extend the redirect mapping capabilities that Express provides,451 * we may use the `app.redirect()` method:
165 unmodified lines