title: Nodejs : Redirect URL
body: <p>I'm trying to redirect the url of my app in node.js in this way:</p>
  
  <pre><code>// response comes from the http server
  response.statusCode = 302;
  response.setHeader("Location", "/page");
  response.end();
  </code></pre>
  
  <p>But the current page is mixed with the new one, it looks strange :| My solution looked totally logical, I don't really know why this happens, but if I reload the page after the redirection it works.</p>
  
  <p>Anyway what's the proper way to do HTTP redirects in node?</p>