title: Node.js and Express.JS 4 are not loading linked files when using sendFile method
body: <p>Using Express.js 4, when I try to use sendFile in order to serve a page that has additional links to javascript files or images, the browser does not load those other assets. If I access the page using a URL it works fine, it is just when I try loading the page with the sendFile method that is the problem.</p>
  
  <p>For example, here is what my code looks like:</p>
  
  <pre><code>var express = require('express');
  var app = express();
  app.use(express.static('client'));
  var path = require('path');
  
  app.get('/game/:gameid', function (req,res) {
     var gameID = req.params.gameid;
  
     if (checkGameExists(gameID)) {
        res.sendFile(path.resolve(__dirname + '/client/chessBoard.html'));
  }
  </code></pre>
  
  <p>I have tried a bunch of variations like:</p>
  
  <pre><code>res.sendFile(path.resolve(__dirname + '/client/chessBoard.html'));
  res.sendFile(__dirname + "/chessBoard.html");`
  res.sendFile("chessBoard.html", {root: __dirname + "/client/"});
  </code></pre>
  
  <p>I have read the Express4 API documentation on sendFile (<a href="http://expressjs.com/4x/api.html#res.sendFile" rel="nofollow">http://expressjs.com/4x/api.html#res.sendFile</a>), but I am not sure what I am doing wrong. </p>
  
  <p>I am new to Node.js &amp; Express.js so any help would be appreciated!</p>