mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-11 07:00:47 +02:00
Merge pull request #18199 from overleaf/jpa-cleanup-redirects
[web] cleanup redirects in session when reaching project dashboard GitOrigin-RevId: aff131ebf68dda059d7d6949563e72834decd894
This commit is contained in:
@@ -87,6 +87,11 @@ const _buildPortalTemplatesList = affiliations => {
|
||||
* @returns {Promise<void>}
|
||||
*/
|
||||
async function projectListPage(req, res, next) {
|
||||
// cleanup redirects at the end of the redirect chain
|
||||
delete req.session.postCheckoutRedirect
|
||||
delete req.session.postLoginRedirect
|
||||
delete req.session.postOnboardingRedirect
|
||||
|
||||
// can have two values:
|
||||
// - undefined - when there's no "saas" feature or couldn't get subscription data
|
||||
// - object - the subscription data object
|
||||
|
||||
Reference in New Issue
Block a user