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", )}`; }