- Open on Drupal.org βCore: 10.1.x + Environment: PHP 8.1 & MySQL 8last update
almost 2 years ago Waiting for branch to pass - Issue created by @jumoke
After paging through search results, selecting "All" Facets, AJAX returns empty JSON message
Navigate through your search results and then select another Facet. Page again and select "All" and you will receive an empty json array with "message" key.
It is observed that "All" facets links are getting a Wrong Route which is: views.ajax instead of the current route it's on.
We need to manage the AJAX condition in Drupal\facets\Widget::WidgetPluginBase class to use the current url rather than /views/ajax.
I've added a patch for this, which resolves the issue.
Needs review
3.0
Code