Hi,
I have created a search bar to send input to a new page using query in the URL,
The new page then load this query and uses that to search my database.
My problem is that once the action has occurred and the new page is loaded with the search results then the search bar is redundant until i go onto a different page again as the URL is no longer the same as my output URL for my query to go to?
Any suggestions?
Here is my code for the action to send the imputed text from my searchbar, the other page just retrieves this info;
export function searchButtonHeader_click(event) {
wixLocation.to(“/Stores/Products?search=”+$w(“#searchFieldHeader”).value);
}
Thanks
Matt