Skip to content

link to reset-credentials ignores default locale AND ui_locales #44784

@0314R

Description

@0314R

Before reporting an issue

  • I have read and understood the above terms for submitting issues, and I understand that my issue may be closed without action if I do not follow them.

Area

No response

Describe the bug

In our realm, the enabled locales are English and Dutch, and the latter is the default locale.
For some pages, such as the default login page, the default language isn't used, but we could fix those by adding URL parameter ui_locales=nl. That fix does not work for this issue, though.

Version

26.3.5

Regression

  • The issue is a regression

Expected behavior

When you link straight to a required-action page of the login flow, such as reset credentials, it should choose choose the realm's default locale, or at least choose the locale in an URL parameter such as ui_locales=nl.

Actual behavior

The reset credentials page "required action" page gets shown in English by default, even after adding a query parameter like ui_locales=nl or kc_locale=nl, it still shows English by default.

How to Reproduce?

  1. Set realm's locales to English and Dutch
  2. Set realm's default locale to Dutch
  3. Try to open the reset-credentials page directly, including (or excluding) a ui_locales=nl parameter: https://the-server.nl/realms/the-realm/login-actions/reset-credentials?client_id=some_client&ui_locales=nl

Anything else?

I assume this bug extends to other /login-actions pages, but we have not tested those.
URL parameter kc_locale=nl also didn't work.

Metadata

Metadata

Assignees

No one assigned

    Type

    No fields configured for bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions