mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-29 20:11:32 +02:00
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:
@@ -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,
|
||||
})
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user