💡 Added a link to manage paid subscriptions on the newsletter unsubscribe#28780
💡 Added a link to manage paid subscriptions on the newsletter unsubscribe#28780Aubaid12 wants to merge 1 commit into
Conversation
…ribe page ref TryGhost#23445 Paid members opening the newsletter unsubscribe page previously saw only greyed-out text saying it won't cancel their paid subscription, with no way to act on it. This adds a clear 'Manage your paid subscription' link for paid members, routing logged-in members to their account and logged-out members to sign in first.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
Walkthrough
Possibly related issues
🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Refs #23445
On the newsletter unsubscribe page, paid members just see the greyed-out note that unsubscribing won't cancel their paid subscription. There's no link to actually do anything about it, so if someone wants to manage or cancel their subscription they're stuck.
This adds a "Manage your paid subscription" link under that note for paid members. If they're logged in it takes them to their account; if they're not (e.g. coming from an email link) it sends them to sign in first, since the account pages need auth. Free members don't see the link.
I used the "Manage your paid subscription" wording from cathysarisky's suggestion in the issue, and kept the existing note rather than turning it into a one-click cancel (per 9larsons' comment that it shouldn't be framed as making cancellation easier).
Added tests for the three cases (free = no link, paid logged-out = sign in, paid logged-in = account) and checked it manually on a local build.