Client-side integration FAQ
How I append parameters in the URL being formed by br-mob?
We can append parameters to the URL using the urlPrefix parameter in the config object being defined. We have provided the examples for Search and Autosuggest plug-in.
We need to include an ampersand (&) at the end of the prefix string since br-mob might append more fields in the URL.
Autosuggest
var autosuggestConfig = { accountId: <Bloomreach Provided Account ID>, authKey: '', domainKey: 'example.com', environment: 'staging', urlPrefix:'#brm-search?facet.range=price:[0 TO 100]&facet.range=price:[0 TO 100]&', };
Search
var searchConfig = { accountId: <Bloomreach Provided Account ID>, authKey: '', domainKey: 'example.com', environment: 'staging', renderFunction: renderPageImpl, errorCallback: errorHandlerImpl, timeout: 1000, fieldNames: [F.pid, F.title, F.brand, F.price, F.sale_price, F.promotions], urlPrefix:'#brm-search?facet.range=price:[0 TO 100]&facet.range=price:[0 TO 100]&', };