mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FEATURE: add noindex header to badges, groups, and /my pages (#9736)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user