- Issue created by @pcate
- 🇬🇧United Kingdom aaron.ferris
No it doesn't appear to, im seeing the same result as yourself - filters that are displayed externally to the view are reloading the page.
- Status changed to Needs review
almost 2 years ago 2:08pm 17 August 2023 - 🇬🇧United Kingdom aaron.ferris
Attaching a patch that fixes this for me, again, it needs the core patch from https://www.drupal.org/project/drupal/issues/2894747 🐛 Views hardcodes exposed filter block form ID's which breaks AJAX when the same form is shown multiple times on one page Needs work
- 🇪🇸Spain aherraem
The patch applied, mention by aaron.ferris, solved the problem of the page being reloded after activating AJAX on the view and the exposed filter.
- 🇫🇷France sébastien-fr Nantes - France
Patch #3 fixes the problem. I had to apply the patch on the core as instructed. It didn’t work the first time even though I clear the cache every time I make a change. I have 2 “Configurable Views Filter Block” blocks, one of which is displayed with twig tweak and the settings were not taken into account but it finally worked by testing different combinations.
- 🇪🇸Spain manuel.adan 🌌
So we could say that the existing code, removed by patch #3, currently works as a (partial) workaround for the core's issue. I think nothing can be really done to solve this issue locally until 🐛 Views hardcodes exposed filter block form ID's which breaks AJAX when the same form is shown multiple times on one page Needs work is fixed.
- Status changed to Postponed
21 days ago 2:28pm 16 July 2025 - 🇨🇦Canada tondeuse
Patch https://www.drupal.org/files/issues/2024-10-24/3163299_120_d10.3.5.patch → for Drupal core works nicely on Drupal 10.4.8, along with patch in comment #3 .
Using twig tweaks with a syntax like this for rendering in a page twig template :
{{ drupal_block( 'configurable_views_filter_block_block:search-page_1', { label: 'Discipline', label_display: false, visible_filters: ['field_tx_discipline'], filter_instance_id: 'facet_field_tx_discipline' } ) }}
Thanks for this effort, it is game changer to have Ajax work!