Skip to content

Commit 6563867

Browse files
authored
Merge pull request #1446 from algolia/bugfix/MAGE-793
Bugfix/mage 793 IS filter quoted categories
2 parents 56c1636 + 2d633e1 commit 6563867

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

view/frontend/web/instantsearch.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ define(
113113
}
114114

115115
if (algoliaConfig.instant.isVisualMerchEnabled && algoliaConfig.isCategoryPage ) {
116-
searchParameters.filters = `${algoliaConfig.instant.categoryPageIdAttribute}:'${algoliaConfig.request.path}'`;
116+
searchParameters.filters = `${algoliaConfig.instant.categoryPageIdAttribute}:"${algoliaConfig.request.path.replace(/"/g, '\\"')}"`;
117117
}
118118

119119
instantsearchOptions = algolia.triggerHooks('beforeInstantsearchInit', instantsearchOptions, algoliaBundle);

0 commit comments

Comments
 (0)