title: How do I redirect to the "current" page in node.js (No middle-ware)
body: <p>User's can log in from any page.</p>
  
  <p>I'd like to have the form redirect to the current page the user is on and clear the POST data so they can refresh without problems.</p>
  
  <p>I can't seem to figure out how to do it, or find how to do it, without using an external library or middleware.</p>
  
  <p>Any help would be appreciated!</p>
  
  <hr>
  
  <p><strong>EDIT:</strong><br>
  There is a login form that appears in the top of every page.  The user may enter their credentials and the form's action leads to itself.</p>
  
  <p>The server checks to see if a user is logging in, and if the correct POST variables are set, it sets the required various session variables.</p>
  
  <p>I'm wondering how I can redirect the user to the page on which they used the login form.</p>