Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I have
- Article
- 2 taxonomies
- Division: division 1, division 2
- Topics: it,supply chain
Article can have multiple topics and multiple divisions.
I have a search page /search. Where I have facets (links) blocks for topics and divisions.
Flow to problem reconstruction.
/search
- Click on topic: IT: /search?f[0]=topics:it
- Click on division 2: /search?f[0]=topics:it&f[1]=divisions:division 2
- Click on topic supply chain: /search?f[0]=topics:it&f[1]=divisions:division 2&f[2]=topics:supply chain
Those are actual urls in facets.
-> IT url: /search
-> division 2 url: /search?f[0]=topics:it
-> supply chanin url: /search?f[0]=topics:it&f[1]=divisions:division 2
that means that if I click to unselect IT i will lose also another filters.
Comment | File | Size | Author |
---|---|---|---|
#2 | multiple_facets_links-2704645-2.patch | 1.36 KB | karlosvh |
Comments
Comment #2
karlosvh CreditAttribution: karlosvh at iO commentedRemoving
and resetting the array values in the QueryString.php file in src/Plugin/facets/url_processor solved the problem.
Comment #3
borisson_Since this passes all previous tests and looks like it'd actually solve the problem I'll change this to RTBC. @frantisekivanko, can you confirm that this patch resolves the issue?
Comment #4
frantisekivanko CreditAttribution: frantisekivanko commented@borisson. I apply a patch and everything is working! Thank @karlosvh.
Comment #6
borisson_Awesome, committed.