When views defines filters in exposed block, and ajax is enabled, ajax requests refresh only view results <div>
, exposed filters <div>
stays untouched. This is fine, if ajax requests are initialized from exposed filters form submission or pagination. But, when request is initialized from outside exposed filters <div>
and exposed filters state changes, exposed filters <div>
stays in previous state. Example use case is using views_ajax_history module. Clicking back button in the browser, will return to previous state of view, but only in view results <div>
, exposed filters <div>
won't change.
How to reproduce:
- Install site with standard configuration.
- Install views_ajax_history module.
- Add one article and one page nodes.
- For view
/admin/content
, edit it, set to use ajax and exposed filters as block. Add exposed filter block to/admin/content
. - Go to
/admin/content
and filterArticles
- Click back button on the browser. You will see, that view was refreshed (you see again one article and one page), but filter
Content type
has stillArticle
selected.