This is my login page http://localhost:3000. After form submission I want the page should redirect to the same page if any error occurs and finally want to show those messages in the login page.Currently i am able to the show messages in the login page.But the problem is that the url becomes http://localhost:3000/login as the page redirecting to this url after form submit. I want, it should be localhost:3000.
So is it possible in express.js. I have seen that redirect method does not carry any extra params as error or something like this.
Any help would be appreciated.
localhostas an address to share it.