-
Notifications
You must be signed in to change notification settings - Fork 653
Fix PSF membership link (#2787) with dynamic logic #2799
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
hugovk
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some wording suggestions.
Co-authored-by: Hugo van Kemenade <[email protected]>
Co-authored-by: Hugo van Kemenade <[email protected]>
Co-authored-by: Hugo van Kemenade <[email protected]>
3504be8 to
df18302
Compare
JacobCoffee
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i like this, thank you!
|
(This was approved with auto-merge enabled, but just waiting for the worflow to be started -- I've done that.) |
Summary
Fixes #2766 — Clicking the PSF membership link previously led to
/users/membership/edit/,causing a 404 for unauthenticated users. This PR updates the link rendering logic and adds tests.
Changes
templates/includes/authenticated.htmlto dynamically choose:/users/membership/for non-members/users/membership/edit/for existing membersusers/tests/test_membership_links.pyTesting
Run:
python3 manage.py test users.tests.test_membership_linksAll tests passed ✅
Impact
This fix ensures the membership link works for both logged-in and anonymous users.