When calling app.render(req, res, path) the path did not begin with a slash (/). This causes unexpected behavior and should be corrected.
app.render(req, res, path)
path
/
Make sure the path being passed to app.render always starts with a slash (/)
app.render