File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -981,8 +981,7 @@ var unbxdSearchInit = function(jQuery, Handlebars){
981
981
var nonhistoryPath = "" ;
982
982
983
983
if ( this . options . type == "search" && this . params [ 'query' ] != undefined ) {
984
- var escapedQuery = this . params . query . replace ( / [ \- \[ \] \/ \{ \} \( \) \+ \? \. \\ \^ \$ \| ] / g, "\\$&" ) ;
985
- url += '&q=' + encodeURIComponent ( escapedQuery ) ;
984
+ url += '&q=' + encodeURIComponent ( this . params . query ) ;
986
985
} else if ( this . options . type == "browse" && this . params [ 'categoryId' ] != undefined ) {
987
986
url += '&category-id=' + encodeURIComponent ( this . params . categoryId ) ;
988
987
}
@@ -1340,7 +1339,7 @@ var unbxdSearchInit = function(jQuery, Handlebars){
1340
1339
this . totalPages = Math . ceil ( obj . response . numberOfProducts / this . getPageSize ( ) ) ;
1341
1340
1342
1341
jQuery ( this . options . searchQueryDisplay ) . html ( this . compiledSearchQueryTemp ( {
1343
- query : obj . searchMetaData . queryParams . q . replace ( / \\ / g , "" )
1342
+ query : obj . searchMetaData . queryParams . q
1344
1343
, numberOfProducts : obj . response . numberOfProducts
1345
1344
, start : this . productStartIdx
1346
1345
, end : this . productEndIdx
You can’t perform that action at this time.
0 commit comments