Redirect subdirectory to the root (mimicking GitHub pages)
function(req, res, next) {
        req.url = _.replace(req.url, /^\/docsearch/, ''); // eslint-disable-line no-param-reassign
        next();
      }