Merge pull request #19947 from overleaf/msm-ce-survey

[web] Temporary CE Survey

GitOrigin-RevId: 874febba1d61f7b9ba333b2de399c9bcc7f3bcc2
This commit is contained in:
Miguel Serrano 2024-08-21 10:28:57 +02:00 committed by Copybot
parent 1175b3b080
commit 2296287e61

View file

@ -170,6 +170,16 @@ async function projectListPage(req, res, next) {
if (user && UserPrimaryEmailCheckHandler.requiresPrimaryEmailCheck(user)) {
return res.redirect('/user/emails/primary-email-check')
}
} else {
if (!process.env.OVERLEAF_IS_SERVER_PRO) {
// temporary survey for CE: https://github.com/overleaf/internal/issues/19710
survey = {
name: 'ce-survey',
preText: 'Help us improve Overleaf',
linkText: 'by filling out this quick survey',
url: 'https://docs.google.com/forms/d/e/1FAIpQLSdPAS-731yaLOvRM8HW7j6gVeOpcmB_X5A5qwgNJT7Oj09lLA/viewform?usp=sf_link',
}
}
}
const tags = await TagsHandler.promises.getAllTags(userId)