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

Unistalled language as preset when reusing a sub-domain #4090

Open
bootstrapdisruptive opened this issue Apr 20, 2024 · 1 comment
Open

Unistalled language as preset when reusing a sub-domain #4090

bootstrapdisruptive opened this issue Apr 20, 2024 · 1 comment
Assignees
Labels
Milestone

Comments

@bootstrapdisruptive
Copy link

Version

v5.39.4

Operating System

Win

Browser

Chrome

What are the steps to reproduce this bug?

  • Install Webiny
  • Install an additional locale (e.g. "De-de")
  • bind the admin app cloudfront to a subdomain (e.g. webiny.)
  • Use the admin interface in the browser (I used Chrome) via the subomain webiny. in the added locale ("de-DE")
  • Unistall Webiny
  • Do a fresh install (this time without the additional locale)
  • Use the admin interface in the browser (I used Chrome) via the cloudfront URL
  • bind the admin app cloudfront to the same subdomiain you used before subdomain (e.g. webiny.)
  • Try using the admin interface in the browser via the subomain webiny.

What is the expected behavior?

As the locale de-DE is not installed. I'd expect the Admin UI to open with the default language or at least show the language switcher.

What do you see instead?

An empty Webiny. There was no language switcher (probably because there was no second locale installed), but the content accessible via the Cloudfront URL wasn't visible or editable. not even the groups or models.

When I added a random second language in the settings, the admin UI showed the language switcher and revealed, that the interface was set to "De-de" - a locale that wasn't even installed/activated,

Additional information

I assume the browser somehow has a localeStorage or something remembering that the URL webiny. was used in de-de and that the Admin app doesn't react on the case, that this locale isn't available.

Possible solution

IIf the remembered locale is not installed/acitvated, make the admin app switch to the default locale.

@Pavel910
Copy link
Collaborator

Pavel910 commented May 1, 2024

@bootstrapdisruptive thanks for the detailed report, and sorry for late reply. This does sound like a localStorage issue. There's nothing else that can affect this behavior, so your guess is correct. We'll have a look at this.

@Pavel910 Pavel910 added this to the 5.40.0 milestone May 1, 2024
@Pavel910 Pavel910 self-assigned this May 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants