res.redirect -- why do you need "/card" at the front?
the router.get assumes the /card, so we only need /, so why does the res.redirect need this as well?
Tom Geraghty24,147 Points
From the documentation:
Redirects can be relative to the current URL. For example, from http://example.com/blog/admin/ (notice the trailing slash), the following would redirect to the URL http://example.com/blog/admin/post/new.res.redirect('post/new');
Ikuyasu Usui45,262 Points
You can also do in card.pug:
a(href=`./`) Next question
or './' or "./". The dot following flash indicates the current relative location. whereas '/' or "/" indicates the root.