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

Language switcher links to wrong url #370

Open
tqwewe opened this issue Sep 11, 2024 · 0 comments · May be fixed by #371
Open

Language switcher links to wrong url #370

tqwewe opened this issue Sep 11, 2024 · 0 comments · May be fixed by #371
Labels
bug Something isn't working

Comments

@tqwewe
Copy link

tqwewe commented Sep 11, 2024

I've tried adding locales to my docs by moving my primary docs into a /en directory, and duplicating it to /zh for chinese translations. I've also added a redirect to default to /en by adding redirect: /en to a docs/index.md page.

All this works, and I can access the translated docs by changing /en to /zh in the url, however when I try changing language from the dropdown in the menu, it redirects to /en/zh.

This can be seen here:
https://docs.page/tqwewe/kameo~book-zh

  1. Visit the url linked above
  2. You'll automatically be redirected to /en
  3. Change language to Chinese in the dropdown
  4. See 404 page, as the url is /en/zh

You can see the links are wrong in the source html too.
Screenshot 2024-09-11 at 2 02 09 PM

@tqwewe tqwewe linked a pull request Sep 11, 2024 that will close this issue
@Ehesp Ehesp added bug Something isn't working labels Sep 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants