mirror of
https://github.com/discourse/discourse.git
synced 2025-05-31 01:38:10 +08:00
FEATURE: Send a 'noindex' header in non-canonical responses (#15026)
* FEATURE: Optionally send a 'noindex' header in non-canonical responses This will be used in a SEO experiment. Co-authored-by: David Taylor <david@taylorhq.com>
This commit is contained in:

committed by
GitHub

parent
1166afa4e8
commit
5647819de4
@ -176,12 +176,6 @@ describe GroupsController do
|
||||
)
|
||||
end
|
||||
|
||||
it 'should return correct X-Robots-Tag header when allow_index_in_robots_txt is set to false' do
|
||||
SiteSetting.allow_index_in_robots_txt = false
|
||||
get "/groups"
|
||||
expect(response.headers['X-Robots-Tag']).to eq('noindex, nofollow')
|
||||
end
|
||||
|
||||
context 'viewing groups of another user' do
|
||||
describe 'when an invalid username is given' do
|
||||
it 'should return the right response' do
|
||||
|
Reference in New Issue
Block a user