Category Path
http://localhost:3000/category/Municipality
When selecting a category [label] and then selecting the subcategory [id], I am losing the value [label] in the path, and it only shows me the following path:
http://localhost:3000/category/subcategory/44
Nextjs allows me to display the subcategory information without problems, but the path it is taking is not correct.
I want the path to be like this:
http://localhost:3000/category/Municipality/subcategory/44
Code: Example
const path = `/category/subcategory/${directory?.id}`; // ??
return (
<List.Item key={directory.id}>
<Skeleton avatar title={false} loading={isLoading} active>
<Card cover={<Image src={`${config.SERVER_URL}${thumbnail?.attributes?.formats?.large?.url}`} />} style={{ width: 300 }} loading={isLoading}>
<Meta
title={<Link href={path}>{title}</Link>} // path to view subcategory information
description={description}
/>
</Card>
</Skeleton>
</List.Item>
);
}
