Unverified Commit 06054a2c authored by Matt Baer's avatar Matt Baer Committed by GitHub

Merge pull request #268 from writeas/noindex-invite-links

Add 'X-Robots-Tag: noindex' header to invite URLs
parents da045519 6f3b502e
Pipeline #673 passed with stage
in 3 minutes and 10 seconds
......@@ -170,6 +170,9 @@ func handleViewInvite(app *App, w http.ResponseWriter, r *http.Request) error {
p.Error = "This invite link has expired."
}
// Tell search engines not to index invite links
w.Header().Set("X-Robots-Tag", "noindex")
// Get error messages
session, err := app.sessionStore.Get(r, cookieName)
if err != nil {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment