vuepress / ecosystem

Official plugins and themes for VuePress2
https://ecosystem.vuejs.press
MIT License
20 stars 26 forks source link

[Bug report] Default locale links to parent path, expects to current path. #160

Closed zfben closed 1 month ago

zfben commented 1 month ago

Description

Default locale links to parent path, expects to current path.

Reproduction

https://stackblitz.com/edit/vuepress-gto5s3?file=docs%2Fguide%2Ftest.md

  1. Click link to child
  2. The language/English's link should link to '/guide/test.html', not '/guide/'.

Used Package Manager

npm

System Info

System:
    OS: Linux 5.0 undefined
    CPU: (8) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
    Memory: 0 Bytes / 0 Bytes
    Shell: 1.0 - /bin/jsh
  Binaries:
    Node: 18.20.3 - /usr/local/bin/node
    Yarn: 1.22.19 - /usr/local/bin/yarn
    npm: 10.2.3 - /usr/local/bin/npm
    pnpm: 8.15.6 - /usr/local/bin/pnpm
    bun: Not Found
  Utilities:
    Git: Not Found
  Browsers:
    Chrome: Not Found
  npmPackages:
    @vuepress/bundler-vite: next => 2.0.0-rc.11 
    @vuepress/bundler-webpack: Not Found
    @vuepress/cli:  2.0.0-rc.11 
    @vuepress/client:  2.0.0-rc.11 
    @vuepress/core:  2.0.0-rc.11 
    @vuepress/markdown:  2.0.0-rc.11 
    @vuepress/shared:  2.0.0-rc.11 
    @vuepress/utils:  2.0.0-rc.11 
    vue: ^3.4.15 => 3.4.27 
    vue-router:  4.3.2 
    vuepress: next => 2.0.0-rc.11
Mister-Hope commented 1 month ago

locale of zh should be /zh/, and I am not sure what you are talking.

provide a detailed reproduction step like

github-actions[bot] commented 1 month ago

Hello @zfben. Please provide a minimal reproduction using a GitHub repository or v2.vuepress.vuejs.org/new. Issues marked with need reproduction will be closed if they have no activity within 7 days.

zfben commented 1 month ago

locale of zh should be /zh/, and I am not sure what you are talking.

provide a detailed reproduction step like

  • visit xxx
  • exepcted yyy at zzz to be mmm

https://stackblitz.com/edit/vuepress-gto5s3?file=docs%2Fguide%2Ftest.md

  1. Click link to child
  2. The language/English's link should link to '/guide/test.html', not '/guide/'.