[Bug] Pricing PlanCard ignores configured CTA labels and Enterprise contact destination
Description
The pricing page (https://layer5.io/pricing/) does not display or use the CTA configuration defined for each subscription tier.
Expected CTA Configuration
The src/sections/Pricing/generatePlans.js configuration defines:
| Tier | Configured CTA Label | Configured Destination (x.button[1]) |
|---|---|---|
| Personal | Join for Free | https://cloud.layer5.io |
| Team Designer | Start Free Trial | https://cloud.layer5.io |
| Team Operator | Start Free Trial | https://cloud.layer5.io |
| Enterprise | Contact Sales | https://us15.list-manage.com/contact-form?u=6b50be5aea3dfe1fd4c041d80&form_id=d0ffe17c92d8014ede6b721aa16096e8 |
Actual Behaviour
src/components/Pricing/PlanCard/index.js ignores the configured button label and hardcodes:
{ x.tier === "Personal" ? "Join for Free" : "Subscribe" }
It also ignores the configured destination in x.button[1] and instead routes all tiers to self-service checkout via the hardcoded planLink map.
The resulting production behaviour on https://layer5.io/pricing/ is:
| Tier | Actual Rendered CTA Label | Actual Destination |
|---|---|---|
| Personal | Join for Free | https://cloud.layer5.io/account/plans |
| Team Designer | Subscribe | https://cloud.layer5.io/account/plans/upgrade?plan=49b77ce8... |
| Team Operator | Subscribe | https://cloud.layer5.io/account/plans/upgrade?plan=f7a5b2b5... |
| Enterprise | Subscribe | https://cloud.layer5.io/account/plans/upgrade?plan=ad68ce59... |
The Enterprise button sends visitors to self-service cloud checkout instead of the sales contact form configured in generatePlans.js.
Additionally, when a plan has x.button[0] === "Coming Soon", PlanCard attaches the CSS class price-button-disabled, but still passes $url={planLink[x.tier]}, wrapping the disabled button in an active link that redirects users upon click.
Steps to Reproduce
- Visit https://layer5.io/pricing/
- Inspect the Personal, Team Designer, Team Operator, and Enterprise pricing cards.
- Compare the rendered CTA labels with the configuration in
src/sections/Pricing/generatePlans.js. - Inspect the Enterprise button destination and observe that it routes to self-service checkout rather than the configured sales contact form.
Technical Root Cause
src/components/Pricing/PlanCard/index.js ignores x.button[0] and x.button[1] supplied by generatePlans.js, hardcoding both the label and destination for each tier.
Regression Context
This mismatch was introduced during the August 2025 pricing-component refactor (commit 6485afe10c4c7df27186c0dd2a02a292c2588f99, "Move Pricing components"). In the earlier implementation (src/components/PlanCard/index.js), Enterprise was explicitly handled to open the contact sales flow.
Related Issues
- #6276 — Contact Sales Buttons have unusual behavior (closed).
- #6293 — Start Free Trial and Join For Free buttons not functioning or redirecting (closed).
- #8371 — Inactive Button links and missing external-link handling (closed).
These earlier reports addressed general button click/navigation behavior in the legacy component. This issue specifically addresses the current Pricing/PlanCard component ignoring its configured CTA labels and Enterprise sales destination from generatePlans.js.
Suggested Fix
- In
src/components/Pricing/PlanCard/index.js, usex.button[0]for the button label:{x.button?.[0] ?? (x.tier === "Personal" ? "Join for Free" : "Subscribe")} - Use
x.button[1]as the destination URL when provided (particularly for Enterprise contact form). - When
x.button[0] === "Coming Soon", omit$urlor passdisabled={true}to prevent wrapping in a clickable link.
Hi, can I take this issue i am new in this project and i want to make my first pr if this is still available could you assigne it to me pls
Hi maintainers, I would like to work on this issue. Could you please assign it to me? I can update PlanCard to respect the configured button labels and destinations from generatePlans, properly route Enterprise to the sales contact form, and ensure Coming Soon buttons are not wrapped in active links.
Opened PR #8405 with the fix: updated PlanCard to dynamically use x.button[0] for CTA labels (Start Free Trial, Contact Sales), route Enterprise to its configured sales contact form, omit $url when marked Coming Soon to prevent clickability, and include $external for external links. ESLint and unit tests are all verified green!