mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-23 17:19:37 +02:00
Merge pull request #31229 from overleaf/ii-subscription-redirect-on-error
[web] Fix redirect to subscription page GitOrigin-RevId: 57a3b9c3e8aba2e8a9dde955faaf4b782aeaecac
This commit is contained in:
@@ -427,7 +427,7 @@ async function missingBillingInformation(req, res) {
|
||||
{ error },
|
||||
'error trying to render missing billing information page'
|
||||
)
|
||||
return res.render('/user/subscription')
|
||||
return res.redirect('/user/subscription')
|
||||
}
|
||||
}
|
||||
|
||||
@@ -446,7 +446,7 @@ async function manuallyCollectedSubscription(req, res) {
|
||||
{ error },
|
||||
'error trying to render manually collected subscription page'
|
||||
)
|
||||
return res.render('/user/subscription')
|
||||
return res.redirect('/user/subscription')
|
||||
}
|
||||
}
|
||||
|
||||
@@ -461,7 +461,7 @@ async function subtotalLimitExceeded(req, res) {
|
||||
})
|
||||
} catch (error) {
|
||||
logger.err({ error }, 'error trying to render subtotal limit exceeded page')
|
||||
return res.render('/user/subscription')
|
||||
return res.redirect('/user/subscription')
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user