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-17 14:58:06 +01:00
committed by Copybot
parent 6db579c6ac
commit 18b9d4158e

View File

@@ -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,
})
},