Using "Back" button to return to filtered loop show filters, but unfiltered loop

I’m using Brick’s new filtering feature and ran into an issue: After apply a few filters, if I click one of the items to navigate to its page, then use the back button to return, the filters I selected are still selected, but the loop is no longer being filtered by them.

Seems like either the loop should get filtered by them, or the filters should be reset to default.

As it stands, you have to interact with the filters or refresh the page to get the filters and loop synced up again.

For now, I’m trigger the “Reset” button like so:

<script>
  document.addEventListener('DOMContentLoaded', function() {
    window.addEventListener('pageshow', function(event) {
      if (event.persisted || performance.navigation.type === 2) {
        // Page was loaded from cache (e.g., back navigation)
        const resetButton = document.getElementById('brxe-pdvjqw');
        if (resetButton) {
          resetButton.click();
        }
      }
    });
  });
</script>
1 Like