]> source.dussan.org Git - redmine.git/commitdiff
Merged r19844 from trunk to 4.0-stable (#6734).
authorGo MAEDA <maeda@farend.jp>
Sat, 4 Jul 2020 00:53:52 +0000 (00:53 +0000)
committerGo MAEDA <maeda@farend.jp>
Sat, 4 Jul 2020 00:53:52 +0000 (00:53 +0000)
git-svn-id: http://svn.redmine.org/redmine/branches/4.0-stable@19853 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/welcome/robots.text.erb
test/integration/welcome_test.rb

index 6f66278ad984d9687e0f9abbd66983b0ae708bca..16acc8111582cc45fa8cc3375c99f511412f5e06 100644 (file)
@@ -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=
index ef181e71c62e70a7d711c5ff7273bc185c355b2f..35aab66f3d82067c8341ace33ac742559a0d1694 100644 (file)
@@ -27,5 +27,7 @@ class WelcomeTest < Redmine::IntegrationTest
     assert_equal 'text/plain', @response.content_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