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

Default language is being forced to English #657

Open
tudoramariei opened this issue Mar 5, 2024 · 0 comments
Open

Default language is being forced to English #657

tudoramariei opened this issue Mar 5, 2024 · 0 comments
Assignees
Labels
bug 🐛 Something isn't working Languages

Comments

@tudoramariei
Copy link
Member

Describe the bug

When opening a page from a WF instance without any language selection, the site redirects to the /en page regardless of the default page. The only prerequisite is having a site with two languages, one English.

To Reproduce

Steps to reproduce the behavior:

  1. Create a Website Factory instance with English and another language
  2. Set the default language to the other language
  3. Open the site without having a language code in the URL
  4. The site redirects to the /en version of that page

Expected behavior

The site should redirect to the default language code of the site.

Screenshots

Screen.Recording.2024-03-05.at.16.02.50.mov

Additional context

This issue also appears in development when starting the instance with the ./vendor/bin/sail npm run dev command.

http://localhost:8080/ ends up as http://localhost:8080/en/en/en after a long wait time and then goes to 404.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something isn't working Languages
Projects
None yet
Development

No branches or pull requests

2 participants