@uniweb/kit 0.4.9 → 0.4.11

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniweb/kit",
3
- "version": "0.4.9",
3
+ "version": "0.4.11",
4
4
  "description": "Standard component library for Uniweb foundations",
5
5
  "type": "module",
6
6
  "exports": {
@@ -39,7 +39,7 @@
39
39
  "fuse.js": "^7.0.0",
40
40
  "shiki": "^3.0.0",
41
41
  "tailwind-merge": "^2.6.0",
42
- "@uniweb/core": "0.3.9"
42
+ "@uniweb/core": "0.3.10"
43
43
  },
44
44
  "peerDependencies": {
45
45
  "react": "^18.0.0 || ^19.0.0",
@@ -180,7 +180,9 @@ export function Link({
180
180
  }
181
181
 
182
182
  // Add locale prefix for internal links in non-default locales
183
- if (linkHref.startsWith('/') && !isExternalUrl(linkHref)) {
183
+ // Skip when reload is true — the caller provides a fully-resolved URL
184
+ // (e.g., getLocaleUrl() already includes the target locale prefix)
185
+ if (!reload && linkHref.startsWith('/') && !isExternalUrl(linkHref)) {
184
186
  if (website?.hasMultipleLocales?.()) {
185
187
  const activeLocale = website.getActiveLocale()
186
188
  const defaultLocale = website.getDefaultLocale()