- 🇺🇸United States smustgrave
Can confirm this issue and the patch does fix it. Would be good to get into 2.x and 3.x
Seems small enough to not need tests.
- First commit to issue fork.
When the page doesn't use any filter (first load) and some facet contains an active item then all items of the next facet will be active too. It means that they will contain 'is-active' attribute class.
Really this is an interesting bug. The list widget prepares an URL by new function getUrlForRequest() https://git.drupalcode.org/project/facets/-/blob/2.0.x/src/Plugin/facets...
And this function stores the URL object in the drupal static https://git.drupalcode.org/project/facets/-/blob/2.0.x/src/Utility/Facet...
So, what we have in the result:
Result: every facet link shares its own attributes with the next one.
Looks like it was caused by #3291943: When rendering facets on non search page, it throws error instead of 404 on 404 pages →
Clone the URL as we did for the other place where we use the same function.
https://git.drupalcode.org/project/facets/-/blob/2.0.x/src/Plugin/facets...
2.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
Can confirm this issue and the patch does fix it. Would be good to get into 2.x and 3.x
Seems small enough to not need tests.