mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-28 19:41:33 +02:00
Use intelligent /user/trial v2 URL for v2 trials
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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?
|
||||
|
||||
Reference in New Issue
Block a user