Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 291671

Views - update filters block on ajax request

$
0
0

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:

  1. Install site with standard configuration.
  2. Install views_ajax_history module.
  3. Add one article and one page nodes.
  4. For view /admin/content, edit it, set to use ajax and exposed filters as block. Add exposed filter block to /admin/content.
  5. Go to /admin/content and filter Articles
  6. 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 still Article selected.

Viewing all articles
Browse latest Browse all 291671

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>