summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIT Fixcomart <it@fixcomart.co.id>2024-07-30 08:12:56 +0000
committerIT Fixcomart <it@fixcomart.co.id>2024-07-30 08:12:56 +0000
commitcb034e062ec83f355347b5dc9d4257d89da8cbe6 (patch)
tree848f12144c16398d8369e4f044de35b6119d9a6c /src
parentd6b803e618f3ff4cf0bfbf6812c4815880333696 (diff)
parent7dc18df04a6cf75e696f53ca578e4c36cfce9748 (diff)
Merged in Feature/category-management (pull request #186)
<iman> update category management filter search
Diffstat (limited to 'src')
-rw-r--r--src/lib/product/components/ProductFilterDesktop.jsx6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/product/components/ProductFilterDesktop.jsx b/src/lib/product/components/ProductFilterDesktop.jsx
index a8073036..1933c5f0 100644
--- a/src/lib/product/components/ProductFilterDesktop.jsx
+++ b/src/lib/product/components/ProductFilterDesktop.jsx
@@ -107,7 +107,11 @@ const ProductFilterDesktop = ({ brands, categories, prefixUrl, defaultBrand = nu
const slug = Array.isArray(router.query.slug) ? router.query.slug[0] : router.query.slug;
if (slug) {
- router.push(`${prefixUrl}/${slug}?${params}`)
+ if(prefixUrl.includes('category') || prefixUrl.includes('lob')){
+ router.push(`${prefixUrl}?${params}`)
+ }else{
+ router.push(`${prefixUrl}/${slug}?${params}`)
+ }
} else {
router.push(`${prefixUrl}?${params}`)
}