Selecting "All" Facets after Pagination on AJAX enabled view returns empty JSON message

Created on 26 May 2023, almost 2 years ago

Problem/Motivation

After paging through search results, selecting "All" Facets, AJAX returns empty JSON message

Steps to reproduce

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.

Proposed resolution

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.

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Needs review

Version

3.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States jumoke

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024