Search Posts

Category: http-redirect

Nodejs Express redirecting does not work

I’m currently trying to redirect a user to a success screen after he click the login button. Everything seems to be working fine but the page does not change. Tried searching online but none of the solution helped. Update It seems that the root cause is because of ‘/’ in routes. Changed it to ‘/home’ and it works now Solved Below is my html, server and route codes index.html <!DOCTYPE html> <html> <head> <script src=””> […]