How to hit algolia search query with category on link click

I have the below structure of categories. these are html links tags. I want to filter current Algolia search by category on click of category link.

I have tried to do it using Algolia refinement

initialize RefinementList
    search.addWidget(
        instantsearch.widgets.refinementList({
        container: '#refinement-list',
        attributeName: 'taxonomies.category'
    })
);

but it will not work in my case because when there is no result in the category. Category is not visible in refinement list.

So If anyone have any solution. It will be helpful.

I am using JS api of Algolia in WordPress.

Manual values can be added as described in the customisation guide: