-
-
Notifications
You must be signed in to change notification settings - Fork 546
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix issue where an empty taxonomy parameter would return no results #2672
Conversation
Hi @damcclean I tried your fix, and it works perfectly, except that passing a pipe ('|') through the taxonomy parameter returns zero results, still (this wasn't a problem in v2, there you could pass pipes without affecting the filter) Is there a way to support pipes in the filter, and still return results? See example URL from my v3 installation: Test my v2 installation here, where pipes in the filters doesn't affect the results: |
Thanks for trying out my PR. Would you mind sharing the code you're using with the pipe that produces the issue? |
`{{ partial:header }}
{{ partial:brands }} |
Here's my markup (above) I'm using a technique where the user can toggle on and off filters, and toggling off a filter returns a pipe (didn't find a clever way to get rid of it) Test it here: |
Thanks! I've changed the way I'm checking so it should no work for alone pipes. |
Beautiful, thank you! |
Thank you so much @damcclean Now I'm ready to launch the v3 version of my online store!!! |
Glad I could help 🙂 |
This PR fixes #2293.
In v2, when you had an empty
taxonomy
param on thecollection
tag, all results would be displayed, just without taxonomy filtering.However, in v3, if the
taxonomy
parameter was empty, no results would be returned.