From b2fc931d32da7ce74715c9308786babd679d90dd Mon Sep 17 00:00:00 2001 From: BakirFS Date: Wed, 16 Sep 2026 13:37:22 +0200 Subject: [PATCH 1/2] fixed frontend after redirect --- ENTERPRISE_VERSION | 0 api/ENTERPRISE_VERSION | 0 frontend/web/components/IntegrationList.tsx | 4 ++-- .../web/components/modals/CreateEditIntegrationModal.tsx | 8 ++++++-- 4 files changed, 8 insertions(+), 4 deletions(-) create mode 100644 ENTERPRISE_VERSION create mode 100644 api/ENTERPRISE_VERSION diff --git a/ENTERPRISE_VERSION b/ENTERPRISE_VERSION new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/api/ENTERPRISE_VERSION b/api/ENTERPRISE_VERSION new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/frontend/web/components/IntegrationList.tsx b/frontend/web/components/IntegrationList.tsx index 15fd81640d7e..da603c557cc0 100644 --- a/frontend/web/components/IntegrationList.tsx +++ b/frontend/web/components/IntegrationList.tsx @@ -459,7 +459,7 @@ const IntegrationList: FC = (props) => { setIsLoading(false) }) const params = Utils.fromParam() - if (params && params.configure) { + if (params?.configure && props.integrations.includes(params.configure)) { const integrationList = Utils.getIntegrationData() if (integrationList && integrationList[params.configure]) { @@ -543,7 +543,7 @@ const IntegrationList: FC = (props) => { : null } githubMeta={{ githubId: githubId, installationId: installationId }} - projectId={props.projectId} + projectId={params.project || props.projectId} requiresProjectSelection={requiresProjectSelection} onComplete={(result) => { if (requiresProjectSelection && result?.projectId) { diff --git a/frontend/web/components/modals/CreateEditIntegrationModal.tsx b/frontend/web/components/modals/CreateEditIntegrationModal.tsx index 37926ca745be..99a5bbffd321 100644 --- a/frontend/web/components/modals/CreateEditIntegrationModal.tsx +++ b/frontend/web/components/modals/CreateEditIntegrationModal.tsx @@ -239,8 +239,11 @@ const CreateEditIntegration: FC = (props) => { const handleOauthSignature = (res: { signature: string } | null) => { const signature = res && res.signature if (signature) { + const returnUrl = `${document.location.href}?environment=${ + formData.flagsmithEnvironment + }&configure=${id}${projectId ? `&project=${projectId}` : ''}` const postfix = `?redirect_url=${encodeURIComponent( - `${document.location.href}?environment=${formData.flagsmithEnvironment}&configure=${id}`, + returnUrl, )}&signature=${signature}` document.location = `${constructBaseUrl({ environmentApiKey: formData.flagsmithEnvironment, @@ -483,6 +486,7 @@ const CreateEditIntegration: FC = (props) => { setSelectedProjectId(v)} /> @@ -495,7 +499,7 @@ const CreateEditIntegration: FC = (props) => { update('flagsmithEnvironment', environment) From c054d082e1b2988eb36371bb67b2abe4df7e3a36 Mon Sep 17 00:00:00 2001 From: BakirFS Date: Wed, 16 Sep 2026 13:38:22 +0200 Subject: [PATCH 2/2] removed empty files --- ENTERPRISE_VERSION | 0 api/ENTERPRISE_VERSION | 0 2 files changed, 0 insertions(+), 0 deletions(-) delete mode 100644 ENTERPRISE_VERSION delete mode 100644 api/ENTERPRISE_VERSION diff --git a/ENTERPRISE_VERSION b/ENTERPRISE_VERSION deleted file mode 100644 index e69de29bb2d1..000000000000 diff --git a/api/ENTERPRISE_VERSION b/api/ENTERPRISE_VERSION deleted file mode 100644 index e69de29bb2d1..000000000000