Merge pull request #12160 from overleaf/mf-old-plans-page-annual-button

Fix annual buy button in old plans page is linked to the free trial check out page

GitOrigin-RevId: 7157b354a21e46f4eb194ae1ef741e90790b6071
This commit is contained in:
Jakob Ackermann
2023-03-13 09:04:23 +00:00
committed by Copybot
parent 62450f8f31
commit 7ae5a9f060
5 changed files with 68 additions and 43 deletions
@@ -71,6 +71,14 @@ async function plansPage(req, res) {
)
}
let currentView = 'monthly'
if (
plansPageLayoutV3Assignment.variant === 'old-plans-page-annual' ||
plansPageLayoutV3Assignment.variant === 'new-plans-page'
) {
currentView = 'annual'
}
const showNewPlansPage =
plansPageLayoutV3Assignment.variant === 'new-plans-page'
@@ -95,6 +103,7 @@ async function plansPage(req, res) {
res.render(template, {
title: 'plans_and_pricing',
currentView,
plans,
itm_content: req.query?.itm_content,
itm_referrer: req.query?.itm_referrer,