The filters query the facet API to obtain labels and counts for facets. The count is based on passed filters.
When the page is a resource type page (e.g. "Datasets"), the requests do not take into account the resource type when querying the facets API, and so the returned values refer to all resources.
Filters must filter by resource type, as the client already does when querying the resources API from the pags.
This is the Datasets page showing the request to retrieve the Categories facets:

And this is the same but with the Datasets filter set from the "All resources" page:

The filters query the facet API to obtain labels and counts for facets. The count is based on passed filters.
When the page is a resource type page (e.g. "Datasets"), the requests do not take into account the resource type when querying the facets API, and so the returned values refer to all resources.
Filters must filter by resource type, as the client already does when querying the resources API from the pags.
This is the Datasets page showing the request to retrieve the Categories facets:

And this is the same but with the Datasets filter set from the "All resources" page:
