title: Node - connect-flash not working on redirect
body: <p>I'm running into some weird issues with connect-flash, I've used it in other projects in the exact same manner and it worked fine, here is what I have:</p>
  
  <p><strong>Some Route</strong></p>
  
  <pre><code>if (err) {
      req.flash('message', [{
        class: 'alert-danger',
        message: 'TEST'
      }]);
  
      res.redirect('/error');
  }
  </code></pre>
  
  <p><strong>error route</strong></p>
  
  <pre><code>router.get('/error', function (req, res, next) {
    console.log('---in error route')
    console.log(req.flash('message'));
  
   res.render('error', {
      message: req.flash('message'),
      layout: layout
    });
  })
  </code></pre>
  
  <p><strong>console.log</strong></p>
  
  <pre><code>---in error route
  [ { class: 'alert-danger', message: 'TEST' } ]
  </code></pre>
  
  <p><strong>error.hbs</strong></p>
  
  <pre><code>{{#if message}} 
      {{#each message}}
          &lt;div class="{{this.class}}"&gt;{{this.message}}&lt;/div&gt;
      {{/each}} 
  {{/if}}
  </code></pre>
  
  <p>Clearly it's in there, but there is no printout, if I copy the exact smae thing from the first route to error, it displays (which won't work for me, but just for testing to make sure the hbs template logic works):</p>
  
  <pre><code>router.get('/error', function (req, res, next) {
  
    req.flash('message', [{
      class: 'alert-danger',
      message: 'TEST'
    }]);
    res.render('error', {
      message: req.flash('message'),
      layout: layout
    });
  })
  </code></pre>
  
  <p>It's probably something simple, but I have no idea what it is.</p>