title: Express.js: Is it possible to pass an object to a redirect like it is with res.render?
body: <p><strong>EDIT:</strong> The solutions proposed <a href="https://stackoverflow.com/questions/19035373/redirecting-in-express-passing-some-context">in this answer</a> are the right way to achieve this:</p>
  
  <p>On a <code>get</code> request in node I can do this:</p>
  
  <pre><code>app.get('/', function(req, res) {
      res.render('index.ejs', {
          message: 'test'
      });
  });
  </code></pre>
  
  <p>And send an object in order to set a message along with the request. How can I do the same with a redirect:</p>
  
  <p>i.e. something like this:</p>
  
  <pre><code>function testSend(req, res) {
  
      mess = {message: 'test two'};
      res.redirect('/', mess);
      //Won't pass to the "get"
  }
  </code></pre>