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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user