mirror of
https://github.com/cloudflare/vinext.git
synced 2026-05-09 08:25:34 +02:00
[PR #367] [MERGED] fix(link): use localized href for SPA navigation #515
Labels
No labels
enhancement
enhancement
good first issue
help wanted
nextjs-tracking
nextjs-tracking
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/vinext#515
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/cloudflare/vinext/pull/367
Author: @NathanDrake2406
Created: 3/9/2026
Status: ✅ Merged
Merged: 3/9/2026
Merged by: @james-elicx
Base:
main← Head:fix/link-locale-navigation-v2📝 Commits (1)
0fe7b14fix(link): use localized href for SPA navigation and onNavigate callback📊 Changes
1 file changed (+2 additions, -2 deletions)
View changed files
📝
packages/vinext/src/shims/link.tsx(+2 -2)📄 Description
Summary
next/link'slocaleprop correctly affected the rendered<a>href and prefetch path, but SPA click navigation and theonNavigatecallback used the non-localizedresolvedHref<Link href="/about" locale="fr">would render<a href="/fr/about">and prefetch/fr/about, but SPA-navigate to/aboutlocalizedHrefinstead ofresolvedHrefin the click handler (line 370) andonNavigatecallback (line 386)Test plan
link.test.tslocale tests pass (36/36)🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.