I would like to use the RoutingService to show products of a specific category on the search page. Sadly I could not find any documentation for the RoutingService on the generated api doc.
Spartacus Version: 1.5.1
This is what my current approach is looking like:
this.routingService.go({
cxRoute: 'search',
params: {
query: '',
},
},
{},
{
queryParams: {
query: ':relevance:category:' + categoryId
}
},
);
Currently this will result in the search page returning all products (not filtered by specific category)
Am I missing something? Or is this approach currently not possible and products can only be filtered via category when using cxRoute: 'category'?