title: Node.js redirect with/without trailing slash
body: <p>I have a javascript that does different things depending on the URL.
  for that to work, i need to have consistent URIs.</p>
  <p>for example, i need users to always be on <code>www.site.com/users/bob/</code> instead of <code>www.site.com/users/bob</code></p>
  <p>node unfortunately doesn't support that, as it seems.</p>
  <p>i tried redirecting with</p>
  <pre><code>router.get('/:user', function(req, res) {
      res.redirect('/users/' + req.params.user' + '/');
  });
  </code></pre>
  <p>but it just results in a redirect loop, as the URL with and without slash seem to be treated as the same.</p>
  <p>how can i do this?
  thanks!</p>
  <h1>edit:</h1>
  <p>i want to route from WITHOUT slash to WITH slash.
  the answers in the other question address the other way around.
  i can't .substr(-1) my URLs</p>