#7430 closed defect (bug) (fixed)
Plugin Categories should work with Tags
Reported by: | dufresnesteven | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Component: | Plugin Directory | Keywords: | has-patch |
Cc: |
Description
If you are browsing the directory using tags and apply a plugin taxonomy (ie: community), you lose the tag as a search filter.
How to Reproduce:
- Visit https://wordpress.org/plugins/tags/ecommerce/.
- Confirm you can see relevant "ecommerce" results.
- Click "Community".
- Notice you are no longer viewing "Community" plugins that relate to the "ecommerce" tag. You are simply viewing community plugins.
Change History (12)
This ticket was mentioned in PR #198 on WordPress/wordpress.org by @dd32.
8 months ago
#2
- Keywords has-patch added
8 months ago
#3
On URLs such as this: https://wordpress.org/plugins/tags/ecommerce/?plugin_business_model=community the theme 404's.
We currently don't support empty archives, except for searches.
8 months ago
#4
The other option would be retaining the filter
in the redirect from tags => search.
Personally I feel like the only way to make this actually "nice" is to remove the individual "archives" and instead move to a single "search archive with filters".
8 months ago
#6
After talking with @StevenDufresne we came to the conclusion that:
- A request for /tags/something/?model=community should return an empty result-set, and not redirect to search.
- A request for /tags/no-plugins-in-this-tag/ should redirect to search. (As it currently does)
The above effectively does this, this is a bit more complicated than I'd have liked, as due to the way WordPress handles taxonomy archives, it needed some juggling.
https://github.com/WordPress/wordpress.org/assets/767313/ccdb16ca-daac-4d00-bdee-d092c9b1ee4a
Noting, it does work appropriately when "browsing".
See: https://wordpress.org/plugins/browse/blocks/?plugin_business_model=community