From 15046d00a59b3ffd5e029282722afd0b803f43db Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Tue, 20 Feb 2024 21:58:18 -0500 Subject: [PATCH] fix: Do not auto-redirect OIDC if there is an error notice to display closes #6565 --- app/scenes/Login/index.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/scenes/Login/index.tsx b/app/scenes/Login/index.tsx index 70e142bea..c01ad845a 100644 --- a/app/scenes/Login/index.tsx +++ b/app/scenes/Login/index.tsx @@ -232,7 +232,8 @@ function Login({ children }: Props) { if ( config.providers.length === 1 && config.providers[0].id === "oidc" && - !env.OIDC_DISABLE_REDIRECT + !env.OIDC_DISABLE_REDIRECT && + !query.get("notice") ) { window.location.href = getRedirectUrl(config.providers[0].authUrl); return null;