posthog.com icon indicating copy to clipboard operation
posthog.com copied to clipboard

PRICING page - Allow plan to be picked based on query param

Open smallbrownbike opened this issue 2 years ago • 3 comments

Changes

  • Sets the initial plan on the pricing page based on the plan query parameter in the URL
  • Updates links to support new query parameter

Options are:

  • cloud
  • cloud-enterprise
  • self-hosted
  • self-hosted-enterprise

Example: https://posthog.com/pricing?plan=cloud-enterprise

smallbrownbike avatar Jul 21 '22 05:07 smallbrownbike

(this isn't a blocker but we need to figure out if we're already passing parameters like this that are now broken, for the previous plans page)

jamesefhawkins avatar Jul 21 '22 21:07 jamesefhawkins

Did a quick search and it seems as though the only places we used the realm parameter were in the FeatureAvailability component which Eli already updated :+1:

pjhul avatar Jul 21 '22 23:07 pjhul

@jamesefhawkins I’m not sure if any external links are using “realm” but I updated this PR to support both “realm” and “plan” just in case!

smallbrownbike avatar Jul 22 '22 04:07 smallbrownbike

This seems outdated, so 🔐

joethreepwood avatar Apr 27 '23 14:04 joethreepwood