Skip to content

[9.5.6-canary.9][i18n] next/link does not handle cross-locale links correctly #18086

@rokinsky

Description

@rokinsky

Bug report

Describe the bug

I'm trying to use the experimental i18n feature (#17078) and it seems like next/link does not handle cross-locale links correctly.

To Reproduce

Repository: next.js-bug-link-locale
Steps to reproduce the behavior:

  1. Go to http://localhost:3000/nl-nl/42
  2. Click on 'TO /de-de/42' link
  3. See 404 error and URL http://localhost:3000/nl-nl/de-de/42

Expected behavior

Visiting http://localhost:3000/de-de/42 without errors

Screenshots

Screenshot 2020-10-21 at 14 44 22

Screenshot 2020-10-21 at 14 47 43

System information

  • OS: macOS
  • Browser (if applies): chrome
  • Version of Next.js: 9.5.6-canary.9
  • Version of Node.js: 10.22.1

Additional context

N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions