Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialYen-Chen Chu
6,913 Pointsso the "goodbye" url will never display in this case, right?
so the "goodbye" url will never display in this case, right?
1 Answer
Matthew Pantel
Front End Web Development Techdegree Graduate 27,089 PointsSuper late response, but figured I'd put this here for others....
Correct, I actually never created a pug file for /goodbye
Since you're using the res.redirect('/hello') for the /goodbye post statement, you'll never see the /goodbye page.
I found this article to be fairly helpful with understanding the inner workings... https://masteringjs.io/tutorials/express/redirect
Also, can look up HTTP status 302 for additional information on that status code (its the code for redirects)