mirror of
https://github.com/overleaf/overleaf.git
synced 2025-04-22 02:18:27 +00:00
Merge pull request #22027 from overleaf/mf-activate-plans-page-new-design-variant
[web] Activate plans page new-design variant for all users GitOrigin-RevId: 7da3c973cded8597cadd691f5d6e928d31e8d26f
This commit is contained in:
parent
c276fa00ae
commit
c4e0294d36
3 changed files with 0 additions and 27 deletions
|
@ -163,13 +163,6 @@ async function plansPage(req, res) {
|
|||
}
|
||||
|
||||
async function plansPageLightDesign(req, res) {
|
||||
const splitTestActive = await SplitTestHandler.promises.isSplitTestActive(
|
||||
'website-redesign-plans'
|
||||
)
|
||||
|
||||
if (!splitTestActive && req.query.preview !== 'true') {
|
||||
return res.redirect(302, '/user/subscription/plans')
|
||||
}
|
||||
const { currency, countryCode, geoPricingLATAMTestVariant } =
|
||||
await _getRecommendedCurrency(req, res)
|
||||
|
||||
|
|
|
@ -24,18 +24,6 @@ export default {
|
|||
return
|
||||
}
|
||||
|
||||
webRouter.get(
|
||||
'/user/subscription/plans',
|
||||
RateLimiterMiddleware.rateLimit(subscriptionRateLimiter),
|
||||
SubscriptionController.plansPage
|
||||
)
|
||||
|
||||
webRouter.get(
|
||||
'/user/subscription/plans-3',
|
||||
RateLimiterMiddleware.rateLimit(subscriptionRateLimiter),
|
||||
SubscriptionController.plansPageLightDesign
|
||||
)
|
||||
|
||||
webRouter.get(
|
||||
'/user/subscription',
|
||||
AuthenticationController.requireLogin(),
|
||||
|
@ -44,13 +32,6 @@ export default {
|
|||
SubscriptionController.userSubscriptionPage
|
||||
)
|
||||
|
||||
webRouter.get(
|
||||
'/user/subscription/choose-your-plan',
|
||||
AuthenticationController.requireLogin(),
|
||||
RateLimiterMiddleware.rateLimit(subscriptionRateLimiter),
|
||||
SubscriptionController.interstitialPaymentPage
|
||||
)
|
||||
|
||||
webRouter.get(
|
||||
'/user/subscription/thank-you',
|
||||
AuthenticationController.requireLogin(),
|
||||
|
|
|
@ -130,7 +130,6 @@ describe('SubscriptionController', function () {
|
|||
this.SplitTestV2Hander = {
|
||||
promises: {
|
||||
getAssignment: sinon.stub().resolves({ variant: 'default' }),
|
||||
isSplitTestActive: sinon.stub().resolves(true),
|
||||
},
|
||||
}
|
||||
this.SubscriptionHelper = {
|
||||
|
|
Loading…
Add table
Reference in a new issue