@uniweb/kit 0.4.9 → 0.4.10
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
|
@@ -180,7 +180,9 @@ export function Link({
|
|
|
180
180
|
}
|
|
181
181
|
|
|
182
182
|
// Add locale prefix for internal links in non-default locales
|
|
183
|
-
|
|
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()
|