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

Changing the language on the article page leads to a non-existent page #23

Open
trofimenk0 opened this issue Dec 1, 2024 · 1 comment
Assignees

Comments

@trofimenk0
Copy link

Trouble with language switcher

When I'm on the page of a single article and want to change the language, the browser goes to a non-existent page.
For example:

  1. The current language is English. I am at the url - /en/blog/not-a-guide-to-integrating-strapi-with-next-js.
  2. I switch the language to French
  3. I am on the page with url - /fr/blog/not-a-guide-to-integrating-strapi-with-next-js which is wrong webpage
    image

Expectations

To get to the correct page (the French version of the article)

I think the problem is that the article slug for the English and French versions is different and this is not handled in any way.

@Mcastres
Copy link
Collaborator

Indeed! This logic was not implemented at all! I will fix it today. Stay tuned!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants