Filter by subcategory and tag does not work properly


When attempting to filter Discourse by both a subcategory and a tag, topics that have the requested tag appear even if they are not in the subcategory specified.

Steps to reproduce:

  1. Create a category with at least one subcategory.
  2. Create a tag, and use it on multiple threads, in different categories
  3. Filter the view by category, then subcategory, and finally by tag.

Expected Results:

Only topics that have the tag requested AND that appear in the subcategory are listed.

Actual Results:

Other topics with the tag are listed in the view.


It appears that only topics within the same category show up. To explain, let’s say you have category A, with subcategories (of A) B, C, and D. You also have category Z (not under A). If you filter by category B (and a tag) you will see results from B, as well as A, C, and D. It does not appear that topics with the tag from category Z will show up.


Filter used:

URL of filter: If you scroll down, you will see topics from the Performance subcategory, and the support category listed, but not Suggestions or General Discussion (remove category filter to see these).

Versions and Mods:

Discourse 1.5.0.beta7 (

System Information:

Windows 10 Pro, Chrome Stable 47

I believe @neil is working on this soon.

1 Like