FEATURE: add noindex header to badges, groups, and /my pages (#9736)

This commit is contained in:
Joshua Rosenfeld
2020-05-11 01:05:42 -04:00
committed by GitHub
parent 29842e682b
commit 07b728c5e5
6 changed files with 6 additions and 1 deletions

View File

@@ -2433,6 +2433,7 @@ describe UsersController do
it "redirects if the user is not logged in" do
get "/my/wat.json"
expect(response).to be_redirect
expect(response.headers['X-Robots-Tag']).to eq('noindex')
end
context "when the user is logged in" do