summaryrefslogtreecommitdiff
path: root/src/pages/shop
diff options
context:
space:
mode:
Diffstat (limited to 'src/pages/shop')
-rw-r--r--src/pages/shop/category/[slug].jsx6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/pages/shop/category/[slug].jsx b/src/pages/shop/category/[slug].jsx
index e3650235..6d3985a8 100644
--- a/src/pages/shop/category/[slug].jsx
+++ b/src/pages/shop/category/[slug].jsx
@@ -14,8 +14,12 @@ export default function CategoryDetail() {
const categoryName = getNameFromSlug(slug)
const categoryId = getIdFromSlug(slug)
+ const q = router?.query.q || null
const query = {
- fq: `manufacture_id_i:${categoryId}`
+ fq: `category_id_i:${categoryId}`
+ }
+ if (q) {
+ query.q = q
}
return (