Advanced Node and Express - Create New Middleware

See the issue on Github. It looks like the way the test is implemented, after the page is redirected it is looking for the words “Home page” to be present in the HTML.

The directions for the problem do not clearly state that the pug template should be updated, or that the title should be changed from ‘hello’, to ‘Home page’.

The easiest way to fix this is to change the title value to Home Page in the render function for the index page. Otherwise it looks like your code should be fine to pass the test.