diff --git a/services/web/app/views/layout.pug b/services/web/app/views/layout.pug index c8140d24b2..4dfdbc3ae7 100644 --- a/services/web/app/views/layout.pug +++ b/services/web/app/views/layout.pug @@ -98,7 +98,8 @@ html(itemscope, itemtype='http://schema.org/Product') - if (settings.overleaf && settings.overleaf.useOLFreeTrial) script. - window.redirectToOLFreeTrialUrl = '!{settings.overleaf.host}/users/trial' + window.useV2TrialUrl = true + body if(settings.recaptcha) diff --git a/services/web/public/coffee/main/account-upgrade.coffee b/services/web/public/coffee/main/account-upgrade.coffee index 638371e45e..f2f67ea13d 100644 --- a/services/web/public/coffee/main/account-upgrade.coffee +++ b/services/web/public/coffee/main/account-upgrade.coffee @@ -11,8 +11,8 @@ define [ w = window.open() go = () -> ga?('send', 'event', 'subscription-funnel', 'upgraded-free-trial', source) - if window.redirectToOLFreeTrialUrl? - url = window.redirectToOLFreeTrialUrl + if window.useV2TrialUrl + url = "/user/trial" else url = "/user/subscription/new?planCode=#{plan}&ssp=true" if couponCode?