Not working with multiple facets selected and active dropdown option shows as not selected

Created on 8 October 2023, about 1 year ago
Updated 14 November 2023, about 1 year ago

Problem/Motivation

I'm running a clean install of Drupal 10.1.4 with the modules search api, facets and facets pretty paths enabled. I have created a search index view and have chosen the facets to show as dropdowns. I have two different vocabularies shown as facets. When i select a value for the first facet, the page refreshes with "?facets_query=vobabname/termname, but the dropdown item is not selected as active. When i try to combine facets, nothing happens. See this video for video example.

On another site (Drupal 10.0) it seems to work as expected with no query params showing, but on this one the query parameter "facets_query" shows and i have to apply the patch for it to work, which i guess is an obsolete patch anyways since it should not be working this way in the first place.

Any suggestions on where i or something is going wrong?

Steps to reproduce

- Enable search api module
- Enable facets module
- Enable Facets pretty paths module
- Enable pretty paths on facet source configuration page
- Configure facets as dropwdowns (have not tested for other types)
- Create view with facets exposed and try changing values

Proposed resolution

Make dropdown show already active items and update the url when multiple facets are active

Remaining tasks

Make dropdown show already active items and update the url when multiple facets are active

User interface changes

None

API changes

None

Data model changes

None

🐛 Bug report
Status

Closed: works as designed

Version

2.0

Component

Code

Created by

🇳🇴Norway stinis87

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

Comments & Activities

Production build 0.71.5 2024