Skip to content

Commit 9dca4d3

Browse files
authored
Merge pull request #1583 from algolia/bugfix/MAGE-928/insight-query-string
MAGE-928: Fix generated url for insights
2 parents e19ca72 + cf94521 commit 9dca4d3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

view/frontend/web/js/autocomplete.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ define([
210210
indexName: hit.__autocomplete_indexName,
211211
});
212212
if (hit.url.indexOf('?') > -1) {
213-
hit.urlForInsights += insightsDataUrlString;
213+
hit.urlForInsights += '&' + insightsDataUrlString;
214214
} else {
215215
hit.urlForInsights += '?' + insightsDataUrlString;
216216
}

view/frontend/web/js/internals/common.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ define(['jquery', 'algoliaBundle'], function ($, algoliaBundle) {
237237
indexName: hit.__indexName
238238
});
239239
if (hit.url.indexOf('?') > -1) {
240-
hit.urlForInsights += insightsDataUrlString
240+
hit.urlForInsights += '&' + insightsDataUrlString;
241241
} else {
242242
hit.urlForInsights += '?' + insightsDataUrlString;
243243
}

0 commit comments

Comments
 (0)