Is your form using GET rather than POST? Sounds like you did not prevent the default form action when you sent the ajax request
Ajax request is reloading page and adding query strings to uri
I have created a review system, which is working and I have Vue components that make ajax post requests to my review controller. Everything is working, except whenever the form is submitted, it makes a full post request to the site, and reloads the page. It also adds a query string to the uri "body=test" etc.
What am I doing wrong here?
You can see the website here, but you will have to login to test the review functionality: https://www.nurserypeople.com/nurseries/garden-gate-nursery-llc
Assuming that you have a element in order to submit it by ajax you gonna need to do
<form @submit.prevent="yourmethod">
Please or to participate in this conversation.