Ticket #2161 (closed defect (bug): fixed)
category_name query fails on category assigned parent category
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | General | Version: | 2.0 |
| Severity: | normal | Keywords: | category_name query IIS bg|has-patch bg|commit |
| Cc: |
Description
A query type of category_name is causing a 404 error for any category assigned to a parent. Setting category to no parent corrects this. This only appears to occur on IIS server. I cannot duplicate the issue elsewhere (i.e. on Apache).
Same problem reported by another user (with query_posts - category parent issue unverified at time of ticket submission):
Attachments
Change History
comment:2
Kafkaesqui — 6 years ago
Using category_name=parent-cat/sub-cat worked. I agree about the fallback, but at least there's a workaround.
comment:3
davidhouse — 6 years ago
- Keywords bg|has-patch added
Here's a patch for the workaround. Don't know how many bugs it'll cause, though.
comment:5
davidhouse — 6 years ago
- Keywords bg|commit added
Tentatively giving it bg|commit. If this breaks things don't tell anyone I wrote the patch ;)
- Status changed from new to closed
- Resolution set to fixed
Note: See
TracTickets for help on using
tickets.


Try with the full category hierarchy. "parent-cat/sub-cat" We should fallback to matching on just the subcat if the entire hierarchy does not match, but evidently that isn't working.