Merge pull request #17864 from overleaf/jpa-fix-redirect

[web] fix navigation flow after try premium page when using skip button

GitOrigin-RevId: 1ae7ccdb14f7125919bc97746761a21c6896938f
This commit is contained in:
Jakob Ackermann 2024-04-11 12:10:20 +01:00 committed by Copybot
parent a345eb42c2
commit ea0a99253c
2 changed files with 2 additions and 1 deletions

View file

@ -248,6 +248,7 @@ async function interstitialPaymentPage(req, res) {
showBrlGeoBanner: countryCode === 'BR',
showLATAMBanner,
latamCountryBannerDetails,
skipLinkTarget: req.session?.postCheckoutRedirect || '/project',
})
}
}

View file

@ -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"