I have a view of nodes. I am using search api, and added the exposed filter to the view. And using ajax to update some content on the page depending on the search result.
However, if the user presses enter on the exposed-filter it submits the search and redirects the page to /my-search-page
I have tried using a hook form alter
I have checked that the form alter works as I make other customisations, but dont know how I can stop the views filter form from submitting through to the search page.
Is there anyway I can stop the exposed-filter from redirecting to the search page?