mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05: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:
parent
9729befe59
commit
9981be0cc1
1 changed files with 5 additions and 0 deletions
|
@ -87,6 +87,11 @@ const _buildPortalTemplatesList = affiliations => {
|
||||||
* @returns {Promise<void>}
|
* @returns {Promise<void>}
|
||||||
*/
|
*/
|
||||||
async function projectListPage(req, res, next) {
|
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:
|
// can have two values:
|
||||||
// - undefined - when there's no "saas" feature or couldn't get subscription data
|
// - undefined - when there's no "saas" feature or couldn't get subscription data
|
||||||
// - object - the subscription data object
|
// - object - the subscription data object
|
||||||
|
|
Loading…
Reference in a new issue