From 2a5f1be811ccba300328bdd153c293fd65381e69 Mon Sep 17 00:00:00 2001 From: Antoine Clausse Date: Mon, 1 Jun 2026 12:48:01 +0200 Subject: [PATCH] [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) * 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) GitOrigin-RevId: 69d689d0fe89fc68cefab9233739fc61da8f2ced --- services/web/app/views/layout/fat-footer-website-redesign.pug | 2 +- services/web/app/views/layout/fat-footer.pug | 2 +- .../web/frontend/js/shared/components/footer/fat-footer.tsx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/services/web/app/views/layout/fat-footer-website-redesign.pug b/services/web/app/views/layout/fat-footer-website-redesign.pug index 66e35873f0..b7cff34fe1 100644 --- a/services/web/app/views/layout/fat-footer-website-redesign.pug +++ b/services/web/app/views/layout/fat-footer-website-redesign.pug @@ -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 diff --git a/services/web/app/views/layout/fat-footer.pug b/services/web/app/views/layout/fat-footer.pug index b3a3694a81..390c9624a9 100644 --- a/services/web/app/views/layout/fat-footer.pug +++ b/services/web/app/views/layout/fat-footer.pug @@ -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 diff --git a/services/web/frontend/js/shared/components/footer/fat-footer.tsx b/services/web/frontend/js/shared/components/footer/fat-footer.tsx index df41f1fda6..69ec127c5c 100644 --- a/services/web/frontend/js/shared/components/footer/fat-footer.tsx +++ b/services/web/frontend/js/shared/components/footer/fat-footer.tsx @@ -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'), }, ],