diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2018-01-31 18:23:13 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2018-01-31 18:23:13 +0000 |
commit | 953d83a5f892b8854210e640c235b294693543ba (patch) | |
tree | b9c294999cbc155fbb1b04d3ee4b77be6be2156f /app/views/welcome | |
parent | 4348d5c90575a6d7c344dafeda2087f892a15287 (diff) | |
download | redmine-953d83a5f892b8854210e640c235b294693543ba.tar.gz redmine-953d83a5f892b8854210e640c235b294693543ba.zip |
add project id to robots.txt (#27876)
git-svn-id: http://svn.redmine.org/redmine/trunk@17189 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/welcome')
-rw-r--r-- | app/views/welcome/robots.text.erb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/views/welcome/robots.text.erb b/app/views/welcome/robots.text.erb index 089c8e3fb..6f66278ad 100644 --- a/app/views/welcome/robots.text.erb +++ b/app/views/welcome/robots.text.erb @@ -1,8 +1,10 @@ User-agent: * -<% @projects.each do |p| -%> +<% @projects.each do |project| -%> +<% [project, project.id].each do |p| -%> Disallow: <%= url_for(:controller => 'repositories', :action => :show, :id => p) %> Disallow: <%= url_for(project_issues_path(:project_id => p)) %> Disallow: <%= url_for(project_activity_path(:id => p)) %> +<% end -%> <% end -%> Disallow: <%= url_for(issues_gantt_path) %> Disallow: <%= url_for(issues_calendar_path) %> |