From ea0a99253cba27cafb1396138e138dff27e840cc Mon Sep 17 00:00:00 2001 From: Jakob Ackermann Date: Thu, 11 Apr 2024 12:10:20 +0100 Subject: [PATCH] Merge pull request #17864 from overleaf/jpa-fix-redirect [web] fix navigation flow after try premium page when using skip button GitOrigin-RevId: 1ae7ccdb14f7125919bc97746761a21c6896938f --- .../web/app/src/Features/Subscription/SubscriptionController.js | 1 + services/web/app/views/subscriptions/interstitial-payment.pug | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/services/web/app/src/Features/Subscription/SubscriptionController.js b/services/web/app/src/Features/Subscription/SubscriptionController.js index 263d0b0c89..73b0f65c6c 100644 --- a/services/web/app/src/Features/Subscription/SubscriptionController.js +++ b/services/web/app/src/Features/Subscription/SubscriptionController.js @@ -248,6 +248,7 @@ async function interstitialPaymentPage(req, res) { showBrlGeoBanner: countryCode === 'BR', showLATAMBanner, latamCountryBannerDetails, + skipLinkTarget: req.session?.postCheckoutRedirect || '/project', }) } } diff --git a/services/web/app/views/subscriptions/interstitial-payment.pug b/services/web/app/views/subscriptions/interstitial-payment.pug index e0fd28f10b..fbc8f2f1b0 100644 --- a/services/web/app/views/subscriptions/interstitial-payment.pug +++ b/services/web/app/views/subscriptions/interstitial-payment.pug @@ -53,7 +53,7 @@ block content if (showSkipLink) .row.row-spaced-small.text-center - a(href='/project' + a(href=skipLinkTarget event-tracking="skip-button-click" event-tracking-mb="true" event-tracking-trigger="click"