Skip to content

Redirect masterclass product page to /course with ownership check#279

Merged
simonhamp merged 1 commit intomainfrom
course-product-redirect
Mar 10, 2026
Merged

Redirect masterclass product page to /course with ownership check#279
simonhamp merged 1 commit intomainfrom
course-product-redirect

Conversation

@simonhamp
Copy link
Member

Summary

  • /products/nativephp-masterclass now redirects to the /course route instead of showing the generic product page
  • The /course page now checks if the authenticated user already owns the masterclass and displays a "You Own This Course" state (hiding the purchase form and checkout button)
  • Non-masterclass products (e.g. Plugin Dev Kit) continue to use the standard product page

Test plan

  • Added ProductPageTest with 5 tests covering:
    • Masterclass product redirect to /course
    • Non-masterclass products loading normally
    • Course page purchase form for guests and non-owners
    • Course page owned state for purchasers
  • All existing CoursePageTest tests still pass

🤖 Generated with Claude Code

The /products/nativephp-masterclass route now redirects to /course.
The course page checks if the logged-in user already owns the product
and shows a "You Own This Course" state instead of the purchase form.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@simonhamp simonhamp marked this pull request as ready for review March 10, 2026 13:17
@simonhamp simonhamp merged commit d65ef9c into main Mar 10, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant