Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with routing after setting basePath and internationalization #9091

Closed
kjxbyz opened this issue Nov 8, 2023 · 1 comment
Closed
Labels
bug Something isn't working triage Unseen or unconfirmed by a maintainer yet. Provide extra information in the meantime.

Comments

@kjxbyz
Copy link

kjxbyz commented Nov 8, 2023

Environment

  System:
    OS: macOS 14.1.1
    CPU: (6) x64 Intel(R) Core(TM) i5-8500 CPU @ 3.00GHz
    Memory: 32.48 GB / 64.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 18.18.2 - ~/.nvm/versions/node/v18.18.2/bin/node
    Yarn: 1.22.19 - /usr/local/bin/yarn
    npm: 9.8.1 - ~/.nvm/versions/node/v18.18.2/bin/npm
    pnpm: 8.9.2 - /usr/local/bin/pnpm
    bun: 1.0.4 - /usr/local/bin/bun
    Watchman: 2023.10.02.00 - /usr/local/bin/watchman
  Browsers:
    Brave Browser: 119.1.60.110
    Chrome: 119.0.6045.123
    Safari: 17.1


  npmPackages:
    next: 13.4.12 => 13.4.12 
    next-auth: 4.24.4 => 4.24.4 
    react: 18.2.0 => 18.2.0 


  npmPackages:
    @auth/prisma-adapter: ^1.0.5 => 1.0.5 

Reproduction URL

https://github.com/cyf/cyf-insider/tree/i18n

Describe the issue

Problem with routing after setting basePath and internationalization

incorrect path: https://dev.chenyifaer.com/join/zh/join/sign-in/

correct path: https://dev.chenyifaer.com/join/zh/sign-in/

How to reproduce

  1. Visit https://dev.chenyifaer.com/join/zh/ in the browser
  2. Click the 加入计划 button

Expected behavior

Routing is correct

@kjxbyz kjxbyz added bug Something isn't working triage Unseen or unconfirmed by a maintainer yet. Provide extra information in the meantime. labels Nov 8, 2023
@balazsorban44
Copy link
Member

see #9425 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage Unseen or unconfirmed by a maintainer yet. Provide extra information in the meantime.
Projects
None yet
Development

No branches or pull requests

2 participants