-
Notifications
You must be signed in to change notification settings - Fork 29.9k
Closed
Labels
Linking and NavigatingRelated to Next.js linking (e.g., <Link>) and navigation.Related to Next.js linking (e.g., <Link>) and navigation.please verify canaryPlease verify the issue with the latest canary branch.Please verify the issue with the latest canary branch.
Description
What version of Next.js are you using?
11.1.2
What version of Node.js are you using?
v14.18.0
What browser are you using?
Chrome
What operating system are you using?
Windows
How are you deploying your application?
next start and also next export
Describe the Bug
Intra-page and inter-page navigation by Link or router.push failed to work when the URL contains any unicode.
Expected Behavior
Should jump to certain element or page.
To Reproduce
https://github.com/ZhaoColo/nextjs-link-unicode-error-repro
- Clone https://github.com/ZhaoColo/nextjs-link-unicode-error-repro
npm run dev- Open http://localhost:3000
- Click any link or button
- When navigating to the section with unicode id on the same page, only a direct
alink works. When navigating to another page with unicode URL, none of the links work.
Screenshot
rehaldinho64
Metadata
Metadata
Assignees
Labels
Linking and NavigatingRelated to Next.js linking (e.g., <Link>) and navigation.Related to Next.js linking (e.g., <Link>) and navigation.please verify canaryPlease verify the issue with the latest canary branch.Please verify the issue with the latest canary branch.
