I have an option on my site that is easy to search for products by subfilters, but now I have a problem, I need to "clean" this navigation, going back to the before search, I used an uninteresting technique in trying to solve the problem , create a button and put in it the following code:
<a class="button orange"href="javascript:window.history.go(-1)">Limpar Filtros</a>
But of course, I have some problems with that, if the client navigates through more than one filter it will return exactly where it went. I could not find a solution for this, if you prefer to see the example, go here and navigate through the subfilters and click the "clean filters" button: