From de0d22037d039d7700e10370d01e23a19d3435d3 Mon Sep 17 00:00:00 2001 From: Xiao Yijun Date: Wed, 15 Feb 2023 15:01:50 +0800 Subject: [PATCH] fix(console): remove leading slash in the oidc config api path (#3114) --- packages/console/src/pages/ApplicationDetails/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/console/src/pages/ApplicationDetails/index.tsx b/packages/console/src/pages/ApplicationDetails/index.tsx index ffd87e12f..8a4ab8b33 100644 --- a/packages/console/src/pages/ApplicationDetails/index.tsx +++ b/packages/console/src/pages/ApplicationDetails/index.tsx @@ -48,7 +48,7 @@ const ApplicationDetails = () => { const { data: oidcConfig, error: fetchOidcConfigError } = useSWR< SnakeCaseOidcConfig, RequestError - >('/oidc/.well-known/openid-configuration'); + >('oidc/.well-known/openid-configuration'); const isLoading = (!data && !error) || (!oidcConfig && !fetchOidcConfigError); const [isReadmeOpen, setIsReadmeOpen] = useState(false); const [isDeleteFormOpen, setIsDeleteFormOpen] = useState(false);