[web] Fix "For students" link, fix toggles and navigation (#34051)
* [web] Fix footer For Students link to activate student toggle The footer link only set itm_referrer plus a #student-annual hash. The plans page reads the active plan/period from `plan` and `period` query params (PlansHelper.getPlansPageViewOptions), so the student tab never activated from the footer link. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * syncStudentModeFromPlanType after in handleDeprecatedHash * Change URL update to use replaceState in the pricing page * Revert "Change URL update to use replaceState in the pricing page" This reverts commit eac71f193029e3f1c75e0c97261d8a5982c0d35c. --------- Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com> GitOrigin-RevId: 69d689d0fe89fc68cefab9233739fc61da8f2ced
This commit is contained in:
@@ -71,7 +71,7 @@ footer.fat-footer.hidden-print.website-redesign-fat-footer
|
||||
) !{translate('for_groups_and_organizations')}
|
||||
li
|
||||
a(
|
||||
href='/user/subscription/plans?itm_referrer=footer-for-students#student-annual'
|
||||
href='/user/subscription/plans?plan=student&period=annual&itm_referrer=footer-for-students'
|
||||
) #{translate('for_students')}
|
||||
|
||||
.footer-section
|
||||
|
||||
@@ -71,7 +71,7 @@ footer.fat-footer.hidden-print
|
||||
) !{translate('for_groups_and_organizations')}
|
||||
li
|
||||
a(
|
||||
href='/user/subscription/plans?itm_referrer=footer-for-students#student-annual'
|
||||
href='/user/subscription/plans?plan=student&period=annual&itm_referrer=footer-for-students'
|
||||
) #{translate('for_students')}
|
||||
|
||||
.footer-section
|
||||
|
||||
@@ -78,7 +78,7 @@ function FatFooter() {
|
||||
label: t('for_groups_and_organizations'),
|
||||
},
|
||||
{
|
||||
href: '/user/subscription/plans?itm_referrer=footer-for-students#student-annual',
|
||||
href: '/user/subscription/plans?plan=student&period=annual&itm_referrer=footer-for-students',
|
||||
label: t('for_students'),
|
||||
},
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user