Merge pull request #28498 from overleaf/as-login-noindex

[web] Add noindex to SSO login and login with query params

GitOrigin-RevId: 4c722f51bcd6f4d9b63ebbf584021284c7b5d569
This commit is contained in:
MoxAmber
2025-09-18 08:06:19 +00:00
committed by Copybot
parent e2a704ea93
commit c1f870144d
@@ -224,10 +224,15 @@ const UserPagesController = {
) {
AuthenticationController.setRedirectInSession(req, req.query.redir)
}
const metadata = { robotsNoindexNofollow: false }
if (Object.keys(req.query).length !== 0) {
metadata.robotsNoindexNofollow = true
}
res.render('user/login', {
title: Settings.nav?.login_support_title || 'login',
login_support_title: Settings.nav?.login_support_title,
login_support_text: Settings.nav?.login_support_text,
metadata,
})
},