Skip to content

Commit 953d83a

Browse files
committed
add project id to robots.txt (#27876)
git-svn-id: http://svn.redmine.org/redmine/trunk@17189 e93f8b46-1217-0410-a6f0-8f06a7374b81
1 parent 4348d5c commit 953d83a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/views/welcome/robots.text.erb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
User-agent: *
2-
<% @projects.each do |p| -%>
2+
<% @projects.each do |project| -%>
3+
<% [project, project.id].each do |p| -%>
34
Disallow: <%= url_for(:controller => 'repositories', :action => :show, :id => p) %>
45
Disallow: <%= url_for(project_issues_path(:project_id => p)) %>
56
Disallow: <%= url_for(project_activity_path(:id => p)) %>
7+
<% end -%>
68
<% end -%>
79
Disallow: <%= url_for(issues_gantt_path) %>
810
Disallow: <%= url_for(issues_calendar_path) %>

0 commit comments

Comments
 (0)