I am developing a custom theme which does not display the layered navigation filters, so I edited my catalog_category_view.xml adding the instruction:
<referenceBlock name="catalog.leftnav" remove="true" />
Removing the filters stops the layered navigation to work properly. If I visit the URL http://myurl.com/category-url-key?attribute_code=10 the site shows every product belonging to category-url-code, ignoring the filter attribute_code=10.
How do I make the layered navigation work without showing the layered navigation filters?