Routing URL - show ID in query string instead of name of brand

Routing URL - show ID in query string instead of name of brand eg (instead of ?brands=Gardena) show ?brands=234dsfsdf234efd in URL query string? how to achieve that?

We’re using refinementlist widget in our implementation and configured facet value as item name, but in the URL query string we need to show ID not NAME, how can we achieve that? Is there any documentation regarding this?

Hi there,

​We do not currently have any built-in methods to automatically swap/replace attribute values in the URL. However, if you have a 1:1 mapping of ID to NAME you may be able to force the desired attribute to be part of the URL with a routing configuration. Information on building out search with routing URLs can be seen in our docs page here:

​https://www.algolia.com/doc/guides/building-search-ui/going-further/routing-urls/angular/