Search reset w/o page refresh

Highlighted
New Member
5 0 0

Hi all,

 

I have the basic search bar ie:

<form class="search" action="/search">
    <input type="text" placeholder="Search" name="q" value="{{ search.terms | escape }}"  />
    <input type="submit" value="Search" />
</form>

The issue I'm running into is when someone searches for a product, gets search results, then if they go back to search again the search returns the previous search term and the new search term as one string.

 

First Search: "Red Shirt" returns "Red Shirt" 

Second Search: "Blue Shirt" returns "Red ShirtBlue Shirt"

 

The only to fix so far is to refresh the search page.

Is this a caching issue or other? Any advice would be appreciated. 

Thanks in advance

 

0 Likes