Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Add the redir() method to the request object.
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
README.md
index.js
package.json

README.md

Like res.redirect but overrides the redirect if "_redirect" is available in req.body, req.query or req.session.

Think of it as a flash message but for redirects.

Install

npm install express-redir

Usage

var redir = require('express-redir');

// ...

// this should be at the top
// monkey patches res to offer res.redir()
app.use(redir);
Something went wrong with that request. Please try again.