diff --git a/src/core/search/autocompleteapi.js b/src/core/search/autocompleteapi.js index dae6b9f71..0a25f92e1 100644 --- a/src/core/search/autocompleteapi.js +++ b/src/core/search/autocompleteapi.js @@ -76,11 +76,12 @@ export default class AutoCompleteApi { queryVertical (input, verticalKey, barKey) { let request = new ApiRequest({ - endpoint: '/v2/accounts/me/entities/autocomplete', + endpoint: '/v2/accounts/me/answers/autocomplete', apiKey: this._apiKey, version: this._version, params: { 'input': input, + 'answersKey': this._answersKey, 'experienceKey': verticalKey, 'barKey': barKey, 'locale': this._locale diff --git a/tests/ui/components/search/autocompleteapi.js b/tests/ui/components/search/autocompleteapi.js index df90a10ad..65b5ebb7e 100644 --- a/tests/ui/components/search/autocompleteapi.js +++ b/tests/ui/components/search/autocompleteapi.js @@ -78,8 +78,9 @@ describe('querying and responding', () => { }); describe('queryVertical', () => { - const expectedUrl = `${baseUrl}/entities/autocomplete`; + const expectedUrl = `${baseUrl}/answers/autocomplete`; const expectedData = { + answersKey, api_key: apiKey, barKey, experienceKey: verticalKey,