[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:
Antoine Clausse
2026-06-01 12:48:01 +02:00
committed by Copybot
parent 105a0ff35c
commit 2a5f1be811
3 changed files with 3 additions and 3 deletions
@@ -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
+1 -1
View File
@@ -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'),
},
],