File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -13,8 +13,8 @@ Disallow: <%= url_for(issues_gantt_path) %>
13
13
Disallow: <%= url_for(issues_calendar_path) %>
14
14
Disallow: <%= url_for(activity_path) %>
15
15
Disallow: <%= url_for(search_path) %>
16
- Disallow: <%= url_for(issues_path(:sort => '')) %>
17
- Disallow: <%= url_for(issues_path(:query_id => '')) %>
16
+ Disallow: <%= url_for(issues_path) %> ?*sort=
17
+ Disallow: <%= url_for(issues_path) %> ?*query_id=
18
18
Disallow: <%= url_for(issues_path) %> ?*set_filter=
19
19
Disallow: <%= url_for(issues_path(:trailing_slash => true)) %> *.pdf$
20
20
Disallow: <%= url_for(projects_path(:trailing_slash => true)) %> *.pdf$
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ def test_robots
31
31
assert_equal 'text/plain' , @response . media_type
32
32
# Redmine::Utils.relative_url_root does not effect on Rails 5.1.4.
33
33
assert @response . body . match ( %r{^Disallow: /projects/ecookbook/issues\r ?$} )
34
- assert @response . body . match ( %r{^Disallow: /issues\? sort=\r ?$} )
34
+ assert @response . body . match ( %r{^Disallow: /issues\? \* sort=\r ?$} )
35
35
assert @response . body . match ( %r{^Disallow: /issues\? \* set_filter=\r ?$} )
36
36
assert @response . body . match ( %r{^Disallow: /issues/\* \. pdf\$ \r ?$} )
37
37
assert @response . body . match ( %r{^Disallow: /projects/\* \. pdf\$ \r ?$} )
You can’t perform that action at this time.
0 commit comments