I have a contactForm.html page in my ionic application. Once the user presses submit, the form posts to an external php file on my website which can run php. I am able to get the information just fine, but I want to automatically send the user to the home.html page in my application after the php file.
In my php I have tried history.go(-1)
which works but just directs me back to contactForm.html. After that, I try window.location.href = "/home.html"
or window.location.href = "/app/home"
but nothing happens or it gets stuck. If I don't do history.go(-1)
and just do window.location.href = "/home.html"
it just directs me to my website's homepage not the application.
So how do I navigate to a page in my ionic app from an external php file?