every help me :(((. here is link to my code https://github.com/tranluongtiensi/registration_system
I want to redirect the user to login page after registration, I have tried many ways but it doesn’t work. thank everyone very much
every help me :(((. here is link to my code https://github.com/tranluongtiensi/registration_system
I want to redirect the user to login page after registration, I have tried many ways but it doesn’t work. thank everyone very much
2
Answers
You can just use the
window.location.href
when you submit your signup form. So your code forregisterUser(...)
would look something like this.Give it a go!
You need to add a redirect here to this line here
for example :