mirror of
https://github.com/redmine/redmine.git
synced 2025-11-15 09:46:02 +01:00
robots.txt: disallow crawling issues list with a query string (#6734).
Patch by Go MAEDA. git-svn-id: http://svn.redmine.org/redmine/trunk@19844 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -10,3 +10,6 @@ Disallow: <%= url_for(issues_gantt_path) %>
|
||||
Disallow: <%= url_for(issues_calendar_path) %>
|
||||
Disallow: <%= url_for(activity_path) %>
|
||||
Disallow: <%= url_for(search_path) %>
|
||||
Disallow: <%= url_for(issues_path(:sort => '')) %>
|
||||
Disallow: <%= url_for(issues_path(:query_id => '')) %>
|
||||
Disallow: <%= url_for(issues_path) %>?*set_filter=
|
||||
|
||||
@@ -29,5 +29,7 @@ class WelcomeTest < Redmine::IntegrationTest
|
||||
assert_equal 'text/plain', @response.media_type
|
||||
# Redmine::Utils.relative_url_root does not effect on Rails 5.1.4.
|
||||
assert @response.body.match(%r{^Disallow: /projects/ecookbook/issues\r?$})
|
||||
assert @response.body.match(%r{^Disallow: /issues\?sort=\r?$})
|
||||
assert @response.body.match(%r{^Disallow: /issues\?\*set_filter=\r?$})
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user