Skip to content

fix(billing): send post-checkout users to the org billing page#21

Merged
coopbri merged 1 commit into
masterfrom
fix/checkout-success-redirect
Jul 6, 2026
Merged

fix(billing): send post-checkout users to the org billing page#21
coopbri merged 1 commit into
masterfrom
fix/checkout-success-redirect

Conversation

@coopbri

@coopbri coopbri commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

Summary

The Stripe checkout successUrl pointed at /workspaces/__SLUG__/settings, which is not a route in this scaffold (workspace and settings pages live under /organizations/$orgSlug/...). Any app scaffolded from this template redirected paying users to a Page Not Found immediately after subscribing.

Fix the root-cause scaffold so future apps do not inherit the 404: point successUrl at /organizations/__SLUG__/billing, which exists and shows the now-active subscription. Aether substitutes __SLUG__ with the real org slug before redirecting.

Matches the fix already shipped in fractal-app (#60); sibling apps (moment, blossom, arbor, channel, manifold, synapse) get the same fix in parallel.

Details

  • Single-line change in src/components/pricing/PriceCard.tsx.
  • In Aether's billing model the workspace is the organization, so the substituted __SLUG__ (the org slug) fills the /organizations/<slug>/... path correctly.
  • Payment/subscription is unaffected; Stripe completes the subscription before the redirect. This only fixes the post-payment landing page.

Testing

  • Pre-commit hooks pass: knip, biome check, tsc --noEmit.
  • Verified /organizations/$orgSlug/billing route exists in the scaffold.

@coopbri
coopbri merged commit d4168d8 into master Jul 6, 2026
2 of 3 checks passed
@coopbri
coopbri deleted the fix/checkout-success-redirect branch July 6, 2026 21:41
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 6, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant