From 4f452dee3ee1de27246d64e3a75c1ec79f3c49ad Mon Sep 17 00:00:00 2001 From: Darragh ORiordan Date: Mon, 18 Sep 2023 07:59:05 +1000 Subject: [PATCH] feat: add hack for miller start return url --- apps/frontend/src/components/signupUrl.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/apps/frontend/src/components/signupUrl.ts b/apps/frontend/src/components/signupUrl.ts index ff460499..4176cec0 100644 --- a/apps/frontend/src/components/signupUrl.ts +++ b/apps/frontend/src/components/signupUrl.ts @@ -2,8 +2,13 @@ export function getSignUpUrl({ productKey }: { productKey?: string }) { if (!productKey) { return `/api/auth/signup?returnTo=${encodeURIComponent("/#pricing")}`; } + // super hack. fix all this!! + // the sku that gets passed around is miller-start-consulting but there is no url for that to return to + if (productKey.includes("miller-start")) { + productKey = "miller-start"; + } return `/api/auth/signup?returnTo=/${encodeURIComponent( - productKey + "#pricing" + productKey + "#pricing", )}`; }