Hello,
We are loading the Answers Search Bar script (https://assets.sitescdn.net/answers-search-bar/v1.0/answers.min.js) as part of the navigation on yext.com.
I noticed that whenever we have a URL with encoded query params (containing “%”), the script throws an error and prevents the Answers Search Bar from working.
I tried different versions of the script, but they all seem to throw the same error:
- https://assets.sitescdn.net/answers-search-bar/v1.0/answers.min.js
- https://assets.sitescdn.net/answers-search-bar/v1.2/answers.min.js
- https://assets.sitescdn.net/answers/v1.10/answers-modern.min.js
In the case above we are encoding a stringified json object with encodeURIComponent
and setting the url params.
Any help would be appreciated, thanks!