how to redirect in node.js
You want to redirect to the URL (not the view name) that you want the user to go to.
For example, if the route "/user/add"
renders the "add_user.jade"
view then you want to use
res.redirect("/user/add");
Yes, you can redirect on Url with the help of
return res.redirect('/server/Thank');
Thank is a view file with Thank.jade
extension.
and route is /server/thank