From 3aae23e23f540e6c97681ae282295caa41464df5 Mon Sep 17 00:00:00 2001 From: Ken Sternberg Date: Tue, 9 Jan 2024 11:12:23 -0800 Subject: [PATCH] The user's URL options should (must!) override the brand-local request. --- .../authentik/src/elements/ak-locale-context/helpers.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/packages/authentik/src/elements/ak-locale-context/helpers.ts b/web/packages/authentik/src/elements/ak-locale-context/helpers.ts index 51ef76509..a50271a17 100644 --- a/web/packages/authentik/src/elements/ak-locale-context/helpers.ts +++ b/web/packages/authentik/src/elements/ak-locale-context/helpers.ts @@ -47,8 +47,8 @@ const isLocaleCandidate = (v: unknown): v is string => export function autoDetectLanguage(requestedCode?: string): string { const localeCandidates: string[] = [ - globalAK()?.locale ?? TOMBSTONE, localeCodeFromUrl("locale"), + globalAK()?.locale ?? TOMBSTONE, requestedCode ?? TOMBSTONE, window.navigator?.language ?? TOMBSTONE, DEFAULT_LOCALE,