From f3a2136e7dc1ad39fef2850ad3afdc60b606687f Mon Sep 17 00:00:00 2001 From: Sylvain Date: Tue, 4 Oct 2022 10:32:16 +0200 Subject: [PATCH] (bug) category slug with special characters --- .../components/store/categories/product-category-form.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/frontend/src/javascript/components/store/categories/product-category-form.tsx b/app/frontend/src/javascript/components/store/categories/product-category-form.tsx index 8ed9ddce5..8831bb054 100644 --- a/app/frontend/src/javascript/components/store/categories/product-category-form.tsx +++ b/app/frontend/src/javascript/components/store/categories/product-category-form.tsx @@ -54,7 +54,7 @@ export const ProductCategoryForm: React.FC = ({ action useEffect(() => { const subscription = watch((value, { name }) => { if (name === 'name') { - const _slug = slugify(value.name, { lower: true }); + const _slug = slugify(value.name, { lower: true, strict: true }); setValue('slug', _slug); } });