Revert "FEATURE: add Noindex to robots.txt for disallowed routes"

This reverts commit d84256a876a9fa4fc7bcb4b8ac8c5865f8c10701.

This is not supported by Google and causes robots.txt to be flagged as
invalid

Removing Noindex
This commit is contained in:
Sam Saffron 2019-07-30 11:33:38 +10:00
parent b5705348b3
commit 5feb342914
2 changed files with 0 additions and 2 deletions

View File

@ -10,7 +10,6 @@ Crawl-delay: <%= agent[:delay] %>
<%- end -%>
<% agent[:disallow].each do |path| %>
Disallow: <%= path %>
Noindex: <%= path %>
<% end %>

View File

@ -52,7 +52,6 @@ RSpec.describe RobotsTxtController do
Discourse.stubs(:base_uri).returns('/forum')
get '/robots.txt'
expect(response.body).to include("\nDisallow: /forum/admin")
expect(response.body).to include("\nNoindex: /forum/admin")
end
end