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

honyik created an issue. See original summary.

honyik’s picture

Priority: Normal » Major
neetu morwani’s picture

@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

Etroid’s picture

Is this issue also reproducible in 8.x-4.x?

Neslee Canil Pinto’s picture

Status: Active » Closed (won't fix)

We 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.

caspervoogt’s picture

Status: Closed (won't fix) » Active

I 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.

caspervoogt’s picture

Version: 8.x-3.x-dev » 8.x-5.0-beta1
spidersilk’s picture

I'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)?

spidersilk’s picture

OK, 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...

smustgrave’s picture

Sounds like the bug is that the select "All" option appears when selecting links. Am I mistaken in that?