diff --git a/apps/web/app/(app)/environments/[environmentId]/settings/(account)/notifications/components/IntegrationsTip.test.tsx b/apps/web/app/(app)/environments/[environmentId]/settings/(account)/notifications/components/IntegrationsTip.test.tsx index 019b8c526c..5d5b61e7b8 100644 --- a/apps/web/app/(app)/environments/[environmentId]/settings/(account)/notifications/components/IntegrationsTip.test.tsx +++ b/apps/web/app/(app)/environments/[environmentId]/settings/(account)/notifications/components/IntegrationsTip.test.tsx @@ -31,6 +31,6 @@ describe("IntegrationsTip", () => { const linkElement = screen.getByText("environments.settings.notifications.use_the_integration"); expect(linkElement).toBeInTheDocument(); - expect(linkElement).toHaveAttribute("href", `/environments/${environmentId}/integrations`); + expect(linkElement).toHaveAttribute("href", `/environments/${environmentId}/project/integrations`); }); }); diff --git a/apps/web/app/(app)/environments/[environmentId]/settings/(account)/notifications/components/IntegrationsTip.tsx b/apps/web/app/(app)/environments/[environmentId]/settings/(account)/notifications/components/IntegrationsTip.tsx index e3c49132ff..4c080a7c78 100644 --- a/apps/web/app/(app)/environments/[environmentId]/settings/(account)/notifications/components/IntegrationsTip.tsx +++ b/apps/web/app/(app)/environments/[environmentId]/settings/(account)/notifications/components/IntegrationsTip.tsx @@ -16,7 +16,7 @@ export const IntegrationsTip = ({ environmentId }: IntegrationsTipProps) => {

{t("environments.settings.notifications.need_slack_or_discord_notifications")}? {t("environments.settings.notifications.use_the_integration")} diff --git a/apps/web/app/(app)/environments/[environmentId]/surveys/[surveyId]/(analysis)/summary/components/shareEmbedModal/success-view.tsx b/apps/web/app/(app)/environments/[environmentId]/surveys/[surveyId]/(analysis)/summary/components/shareEmbedModal/success-view.tsx index 2c520cefe6..0da4a8de9c 100644 --- a/apps/web/app/(app)/environments/[environmentId]/surveys/[surveyId]/(analysis)/summary/components/shareEmbedModal/success-view.tsx +++ b/apps/web/app/(app)/environments/[environmentId]/surveys/[surveyId]/(analysis)/summary/components/shareEmbedModal/success-view.tsx @@ -75,7 +75,7 @@ export const SuccessView: React.FC = ({ {t("environments.surveys.summary.configure_alerts")} {t("environments.surveys.summary.setup_integrations")} diff --git a/apps/web/app/api/google-sheet/callback/route.ts b/apps/web/app/api/google-sheet/callback/route.ts index 3d038ec57f..61ee499e2e 100644 --- a/apps/web/app/api/google-sheet/callback/route.ts +++ b/apps/web/app/api/google-sheet/callback/route.ts @@ -62,9 +62,10 @@ export const GET = async (req: Request) => { }; const result = await createOrUpdateIntegration(environmentId, googleSheetIntegration); - if (result) { - return Response.redirect(`${WEBAPP_URL}/environments/${environmentId}/integrations/google-sheets`); + return Response.redirect( + `${WEBAPP_URL}/environments/${environmentId}/project/integrations/google-sheets` + ); } return responses.internalServerErrorResponse("Failed to create or update Google Sheets integration"); diff --git a/apps/web/app/api/v1/integrations/airtable/callback/route.ts b/apps/web/app/api/v1/integrations/airtable/callback/route.ts index 60d32500fc..45521fd5db 100644 --- a/apps/web/app/api/v1/integrations/airtable/callback/route.ts +++ b/apps/web/app/api/v1/integrations/airtable/callback/route.ts @@ -90,7 +90,9 @@ export const GET = withV1ApiWrapper({ }; await createOrUpdateIntegration(environmentId, airtableIntegrationInput); return { - response: Response.redirect(`${WEBAPP_URL}/environments/${environmentId}/integrations/airtable`), + response: Response.redirect( + `${WEBAPP_URL}/environments/${environmentId}/project/integrations/airtable` + ), }; } catch (error) { logger.error({ error, url: req.url }, "Error in GET /api/v1/integrations/airtable/callback"); diff --git a/apps/web/app/api/v1/integrations/notion/callback/route.ts b/apps/web/app/api/v1/integrations/notion/callback/route.ts index c407419119..9b033adbd6 100644 --- a/apps/web/app/api/v1/integrations/notion/callback/route.ts +++ b/apps/web/app/api/v1/integrations/notion/callback/route.ts @@ -86,13 +86,15 @@ export const GET = withV1ApiWrapper({ if (result) { return { - response: Response.redirect(`${WEBAPP_URL}/environments/${environmentId}/integrations/notion`), + response: Response.redirect( + `${WEBAPP_URL}/environments/${environmentId}/project/integrations/notion` + ), }; } } else if (error) { return { response: Response.redirect( - `${WEBAPP_URL}/environments/${environmentId}/integrations/notion?error=${error}` + `${WEBAPP_URL}/environments/${environmentId}/project/integrations/notion?error=${error}` ), }; } diff --git a/apps/web/app/api/v1/integrations/slack/callback/route.ts b/apps/web/app/api/v1/integrations/slack/callback/route.ts index e7b8e1ea09..341b02fb07 100644 --- a/apps/web/app/api/v1/integrations/slack/callback/route.ts +++ b/apps/web/app/api/v1/integrations/slack/callback/route.ts @@ -93,13 +93,15 @@ export const GET = withV1ApiWrapper({ if (result) { return { - response: Response.redirect(`${WEBAPP_URL}/environments/${environmentId}/integrations/slack`), + response: Response.redirect( + `${WEBAPP_URL}/environments/${environmentId}/project/integrations/slack` + ), }; } } else if (error) { return { response: Response.redirect( - `${WEBAPP_URL}/environments/${environmentId}/integrations/slack?error=${error}` + `${WEBAPP_URL}/environments/${environmentId}/project/integrations/slack?error=${error}` ), }; }