Defect #6734 ยป 6734.patch
app/views/welcome/robots.text.erb | ||
---|---|---|
10 | 10 |
Disallow: <%= url_for(issues_calendar_path) %> |
11 | 11 |
Disallow: <%= url_for(activity_path) %> |
12 | 12 |
Disallow: <%= url_for(search_path) %> |
13 |
Disallow: <%= url_for(issues_path(:sort => '')) %> |
|
14 |
Disallow: <%= url_for(issues_path(:query_id => '')) %> |
|
15 |
Disallow: <%= url_for(issues_path) %>?*set_filter= |
test/integration/welcome_test.rb | ||
---|---|---|
29 | 29 |
assert_equal 'text/plain', @response.media_type |
30 | 30 |
# Redmine::Utils.relative_url_root does not effect on Rails 5.1.4. |
31 | 31 |
assert @response.body.match(%r{^Disallow: /projects/ecookbook/issues\r?$}) |
32 |
assert @response.body.match(%r{^Disallow: /issues\?sort=\r?$}) |
|
33 |
assert @response.body.match(%r{^Disallow: /issues\?\*set_filter=\r?$}) |
|
32 | 34 |
end |
33 | 35 |
end |