From 5f7d904349571643ce44434294b53fc5887761b7 Mon Sep 17 00:00:00 2001 From: Alex van Andel Date: Fri, 24 Feb 2023 18:39:09 +0000 Subject: [PATCH] Fixed href's to go to the right place (#7377) --- apps/web/components/SettingsShell.tsx | 2 +- apps/web/playwright/auth/delete-account.e2e.ts | 2 +- packages/features/ee/teams/lib/payments.ts | 2 +- packages/features/shell/Shell.tsx | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/web/components/SettingsShell.tsx b/apps/web/components/SettingsShell.tsx index d5f0b2c905..7d02a0111c 100644 --- a/apps/web/components/SettingsShell.tsx +++ b/apps/web/components/SettingsShell.tsx @@ -10,7 +10,7 @@ import NavTabs from "./NavTabs"; const tabs = [ { name: "profile", - href: "/settings/profile", + href: "/settings/my-account/profile", icon: FiUser, }, { diff --git a/apps/web/playwright/auth/delete-account.e2e.ts b/apps/web/playwright/auth/delete-account.e2e.ts index e38769d2e8..367870108a 100644 --- a/apps/web/playwright/auth/delete-account.e2e.ts +++ b/apps/web/playwright/auth/delete-account.e2e.ts @@ -10,7 +10,7 @@ test("Can delete user account", async ({ page, users }) => { await page.waitForSelector("[data-testid=dashboard-shell]"); - await page.goto(`/settings/profile`); + await page.goto(`/settings/my-account/profile`); await page.click("[data-testid=delete-account]"); if (!user.username) throw Error(`Test user doesn't have a username`); diff --git a/packages/features/ee/teams/lib/payments.ts b/packages/features/ee/teams/lib/payments.ts index ec09284257..3eb16dbb39 100644 --- a/packages/features/ee/teams/lib/payments.ts +++ b/packages/features/ee/teams/lib/payments.ts @@ -38,7 +38,7 @@ export const purchaseTeamSubscription = async (input: { teamId: number; seats: n mode: "subscription", allow_promotion_codes: true, success_url: `${WEBAPP_URL}/api/teams/${teamId}/upgrade?session_id={CHECKOUT_SESSION_ID}`, - cancel_url: `${WEBAPP_URL}/settings/profile`, + cancel_url: `${WEBAPP_URL}/settings/my-account/profile`, line_items: [ { /** We only need to set the base price and we can upsell it directly on Stripe's checkout */ diff --git a/packages/features/shell/Shell.tsx b/packages/features/shell/Shell.tsx index 5f1056f47d..fa9b8da97d 100644 --- a/packages/features/shell/Shell.tsx +++ b/packages/features/shell/Shell.tsx @@ -882,7 +882,7 @@ function TopNav() {