Skip to content

Commit

Permalink
feat: add hack for miller start return url
Browse files Browse the repository at this point in the history
  • Loading branch information
darraghoriordan committed Sep 17, 2023
1 parent 5a54088 commit 4f452de
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion apps/frontend/src/components/signupUrl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
)}`;
}

Expand Down

0 comments on commit 4f452de

Please sign in to comment.