Skip to content

Default language is being forced to English #657

Description

@tudoramariei

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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status
Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions