@uniweb/kit 0.7.15 → 0.7.16

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.7.15",
3
+ "version": "0.7.16",
4
4
  "description": "Standard component library for Uniweb foundations",
5
5
  "type": "module",
6
6
  "exports": {
@@ -38,7 +38,7 @@
38
38
  "fuse.js": "^7.0.0",
39
39
  "shiki": "^3.0.0",
40
40
  "tailwind-merge": "^2.6.0",
41
- "@uniweb/core": "0.5.14"
41
+ "@uniweb/core": "0.5.15"
42
42
  },
43
43
  "peerDependencies": {
44
44
  "react": "^18.0.0 || ^19.0.0",
@@ -208,10 +208,10 @@ export function Link({
208
208
  // Auto-generate title if not provided
209
209
  const linkTitle = title || generateTitle(linkHref, localize)
210
210
 
211
- // Internal links with reload: render <a> with basePath prefix
212
- // Used for locale switches that need a full page reload
213
- if (reload && !isExternal && !isDownload) {
214
- const basePath = website?.basePath || ''
211
+ // Links with reload: render plain <a> for full page navigation
212
+ // Used for locale switches (same-domain or cross-domain)
213
+ if (reload && !isDownload) {
214
+ const basePath = !isExternal ? (website?.basePath || '') : ''
215
215
  return (
216
216
  <a
217
217
  href={basePath + linkHref}