I copieas soon I hit the submit button after filling the form the browser does not redirect to root page
Problem with redirecting to root page
Send the code snippets and screenshot of output…
Also my ‘stop code run’ shortcut is not working. Every time I have to change the port number to start the server again.
!Code seems fine.
See if control is reaching res.redirect('/')
or not.
For that, place some console.logs on line 29 in server.js and try if it is even going in then
block.