diff options
| author | it-fixcomart <it@fixcomart.co.id> | 2024-07-30 15:12:00 +0700 |
|---|---|---|
| committer | it-fixcomart <it@fixcomart.co.id> | 2024-07-30 15:12:00 +0700 |
| commit | 7dc18df04a6cf75e696f53ca578e4c36cfce9748 (patch) | |
| tree | d15ec4fb7748e29903785257a5e0b79226a35857 /src/lib/product/components | |
| parent | 09e2fd0ec1e2a1d8438ec1c630a08bc349400ecb (diff) | |
<iman> update category management filter search
Diffstat (limited to 'src/lib/product/components')
| -rw-r--r-- | src/lib/product/components/ProductFilterDesktop.jsx | 6 |
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}`) } |
