Skip to content

Commit 85d8d12

Browse files
author
Praveen
committed
searchMetaData has q as query param name
1 parent d38f8a3 commit 85d8d12

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

unbxdSearch.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1357,7 +1357,7 @@ var unbxdSearchInit = function(jQuery, Handlebars){
13571357

13581358
}else{
13591359

1360-
this.params.query = obj.searchMetaData.queryParams[this.options.searchQueryParam]; //obj.didYouMean[0].suggestion;
1360+
this.params.query = obj.searchMetaData.queryParams.q; //obj.didYouMean[0].suggestion;
13611361

13621362
if(!this.compiledSpellCheckTemp)
13631363
this.compiledSpellCheckTemp = Handlebars.compile(this.options.spellCheckTemp);
@@ -1413,7 +1413,7 @@ var unbxdSearchInit = function(jQuery, Handlebars){
14131413
this.totalPages = Math.ceil(obj.response.numberOfProducts/this.getPageSize());
14141414

14151415
jQuery(this.options.searchQueryDisplay).html(this.compiledSearchQueryTemp({
1416-
query : obj.searchMetaData.queryParams[this.options.searchQueryParam]
1416+
query : obj.searchMetaData.queryParams.q
14171417
,numberOfProducts : obj.response.numberOfProducts
14181418
,start: this.productStartIdx
14191419
,end: this.productEndIdx

0 commit comments

Comments
 (0)