@sit-onyx/nuxt-docs 0.7.1-dev-20260611122725 → 0.7.1-dev-20260612064252

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.
@@ -32,9 +32,10 @@ export const useCollection = async <TCollection extends keyof Collections = keyo
32
32
 
33
33
  // get base path of current route (remove a potential locale prefix)
34
34
  _path = route.path;
35
- const localePrefix = `/${locale.value}`;
35
+ const localePrefix = `/${locale.value}/`;
36
36
 
37
- if (_path.startsWith(localePrefix)) return _path.slice(localePrefix.length);
37
+ if (_path === `/${locale.value}`) return "/";
38
+ if (_path.startsWith(localePrefix)) return `/${_path.slice(localePrefix.length)}`;
38
39
  return _path;
39
40
  });
40
41
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sit-onyx/nuxt-docs",
3
- "version": "0.7.1-dev-20260611122725",
3
+ "version": "0.7.1-dev-20260612064252",
4
4
  "description": "Nuxt layer/template for creating documentations with the onyx design system",
5
5
  "type": "module",
6
6
  "author": "Schwarz IT KG",
@@ -33,9 +33,9 @@
33
33
  "@nuxtjs/i18n": ">= 10",
34
34
  "@nuxtjs/mdc": ">= 0.20.2",
35
35
  "sass-embedded": ">= 1",
36
- "@sit-onyx/icons": "^1.10.1-dev-20260611122725",
36
+ "@sit-onyx/icons": "^1.10.1-dev-20260612064252",
37
37
  "@sit-onyx/nuxt": "^1.0.1",
38
- "sit-onyx": "^1.15.0-dev-20260611122725"
38
+ "sit-onyx": "^1.15.0-dev-20260612064252"
39
39
  },
40
40
  "devDependencies": {
41
41
  "@fontsource-variable/source-code-pro": "^5.2.7",
@@ -50,10 +50,10 @@
50
50
  "sass-embedded": "1.100.0",
51
51
  "typescript": "5.9.3",
52
52
  "vue": "3.5.35",
53
- "@sit-onyx/icons": "^1.10.1-dev-20260611122725",
53
+ "@sit-onyx/icons": "^1.10.1-dev-20260612064252",
54
54
  "@sit-onyx/nuxt": "^1.0.1",
55
55
  "@sit-onyx/shared": "^0.1.0",
56
- "sit-onyx": "^1.15.0-dev-20260611122725"
56
+ "sit-onyx": "^1.15.0-dev-20260612064252"
57
57
  },
58
58
  "scripts": {
59
59
  "dev": "pnpm dev:prepare && nuxi dev playground",