I have following routes in nodejs
here is users.js route
router.post(\'/users/login\', function(request, response) {
// let user login h
res.redirect('auth/login');
I had this in one of my route named 'contributions' and when it is redirected, it is rendered as 'contributions/auth/login' which is wrong.
The main thing i needed was 'localhost://port/auth/login.
i changed my ejs anchor tag to '/auth/login' which will take url from the root, It previously was 'auth/login' which took the url as current url + provided url, i.e., 'contributions/auth/login' in my case.
Hope this helps.