From cb0a302a88043980e9ffb7bb4d461d018bbde62f Mon Sep 17 00:00:00 2001 From: Alexander Petric Date: Wed, 5 Nov 2025 12:53:46 -0500 Subject: [PATCH] fix: authentik frontend baseurl field empty when loaded from db (#7065) --- frontend/src/lib/components/AuthentikSetting.svelte | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/frontend/src/lib/components/AuthentikSetting.svelte b/frontend/src/lib/components/AuthentikSetting.svelte index 9ddb0769f3..e9952308eb 100644 --- a/frontend/src/lib/components/AuthentikSetting.svelte +++ b/frontend/src/lib/components/AuthentikSetting.svelte @@ -6,12 +6,13 @@ $: enabled = value != undefined - let org = '' + // Initialize org from existing auth_url + $: org = value?.connect_config?.auth_url?.replace('/application/o/authorize/', '') ?? '' $: changeOrg(org) function changeOrg(org) { - if (value) { + if (value && org) { value = { ...value, connect_config: { @@ -50,7 +51,7 @@ Authentik Url ({'AUTHENTIK_HOST/application/o/authorize/'}) - +