spoko-design-system 1.3.5 → 1.3.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## [1.3.6](https://github.com/polo-blue/sds/compare/v1.3.5...v1.3.6) (2025-10-07)
2
+
3
+ ### Bug Fixes
4
+
5
+ * update CategoryDetails component ([1583a65](https://github.com/polo-blue/sds/commit/1583a65c10e7f38e1edfce79ac3bb90ab62fb29b))
6
+
1
7
  ## [1.3.5](https://github.com/polo-blue/sds/compare/v1.3.4...v1.3.5) (2025-10-07)
2
8
 
3
9
  ### Bug Fixes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "spoko-design-system",
3
- "version": "1.3.5",
3
+ "version": "1.3.6",
4
4
  "private": false,
5
5
  "main": "./index.ts",
6
6
  "module": "./index.ts",
@@ -14,10 +14,15 @@ const {
14
14
  locale,
15
15
  } = Astro.props;
16
16
 
17
- const localePrefix = locale && locale !== 'en' ? `/${locale}` : '';
18
- const categoryPath = category?.path || `${localePrefix}/${category.slug}`;
19
- const subcategoryPath =
20
- subcategory?.path || `${localePrefix}/${category.slug}/${subcategory?.slug}`;
17
+ // Use paths directly from API - they already include locale prefixes
18
+ // Ensure paths always start with /
19
+ const ensureLeadingSlash = (path: string) => path?.startsWith('/') ? path : `/${path}`;
20
+ const categoryPath = category?.path
21
+ ? ensureLeadingSlash(category.path)
22
+ : `/${category.slug}/`;
23
+ const subcategoryPath = subcategory?.path
24
+ ? ensureLeadingSlash(subcategory.path)
25
+ : `/${category.slug}/${subcategory?.slug}/`;
21
26
  ---
22
27
 
23
28
  <div