Skip to content

Link with unicode doesn't work as expected #30257

@ZhaoColo

Description

@ZhaoColo

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

Screenshot

图片

Metadata

Metadata

Assignees

Labels

Linking and NavigatingRelated to Next.js linking (e.g., <Link>) and navigation.please verify canaryPlease verify the issue with the latest canary branch.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions