title: In express link to static assets breaks when user visits a 404 page
body: <p>I am using express to create a simple application. I have coded my templates using handlebars which looks like something this:</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html lang="en"&gt;
  &lt;head&gt;
      &lt;meta charset="UTF-8" lang="english"&gt;
      &lt;title&gt;{{ title }} &lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
  
  {{{body}}}
  
  &lt;script src="https://code.jquery.com/jquery-1.12.4.min.js"&gt;&lt;/script&gt;
  &lt;script src="js/my.js"&gt;&lt;/script&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>The problem is that if a user visits a 404 page, then link to every static assets in the site breaks. The only solution I have found is to hardcode links to static files like this:</p>
  
  <pre><code>&lt;script src="http://localhost:3000/js/my.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>Obviously, This is not the recommended way. How you guys tackle this issue ?
  I have coming from Django background, and it really provides a consistent and easy way to link static contents. Do we have something similar in express (or handlebars).</p>
  
  <p>Thanks</p>