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.
Option "all" for taxonomy reference filter doesn't work, if "links" are selected as the disaplay method.
Steps to reproduce:
-Have a taxonomy and a CT with reference to that taxonomy
- Create a view with an exposed filter for that taxonomy
- Select "links" as display method in the exposed filter options.
If one then selects a catagory via a link, ID of the filter and ID of the selected taxonomy is added to the URL to filter the results. If one tries to click back via the "all" link, "All" is added instead of the taxonomy term ID and the view result is empty.
Any ideas?
Thanks
Comments
Comment #2
honyik CreditAttribution: honyik commentedComment #3
neetu morwani CreditAttribution: neetu morwani as a volunteer and commented@honyik To add more details here for the faster resolution.
FIlter URL is malformed in case "exposed form filter is exposed as a separate block."
"All" is added to all the values in the filter
Comment #4
Etroid CreditAttribution: Etroid commentedIs this issue also reproducible in 8.x-4.x?
Comment #5
Neslee Canil PintoWe are trying to deprecate 8.x-3.x, can you please check whether this still exists in 8.x-4.x/8.x-5.x branch.
Comment #6
caspervoogt CreditAttribution: caspervoogt at Plethora commentedI am running Drupal 8.9.6. I encountered this in the 3.x branch, then updated to 4.0-beta1 (still an issue there) and then to 5.0-beta1 ... also still an issue there. I did not see any PHP or watchdog errors. I think the behavior I am seeing is quite similar to what the OP described, though in my case the "all" is simply not rendering when using the Links display option. I don't really know if I am encountering *exactly* the same issue but it seems quite similar, which is why I am commenting here rather than starting a new issue.
Here's a quick screencast showing the issue.
I hope you don't mind me having changed the status back to Active. I wanted to make sure you see this update.
Comment #7
caspervoogt CreditAttribution: caspervoogt at Plethora commentedComment #8
spidersilk CreditAttribution: spidersilk commentedI'm having this issue too, with version 8.x-4.0-beta2, or at least a very similar one. The design I've been given to implement (for an image gallery) uses text links for the different gallery categories, and includes an "All" link at the top, but I can't find a way to get that.
I have the option under Advanced settings for adding Select All/None links, but it appears that only works for checkboxes?
Is there not any way I can get an "All" link at the top of the list, that will display all results (and be selected by default if the user has not selected any other filter)?
Comment #9
spidersilk CreditAttribution: spidersilk commentedOK, I found a solution, at least for the view I'm working on. I had Allow Multiple Selections checked, which doesn't really apply when using links rather than checkboxes. Deselecting that resulted in an "- Any -" link at the top, and then I was able to change the displayed text for that link by going to Advanced > Exposed form style > Settings > Exposed filter category > Advanced filter options, and adding "- Any-|All" to the text box there.
That resulted in an All link at the top of the list, and it does work, at least in my case. Not sure if it will work the same way in the later version some other posters here are using, though...
Comment #10
smustgrave CreditAttribution: smustgrave at Mobomo commentedSounds like the bug is that the select "All" option appears when selecting links. Am I mistaken in that?