diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2012-04-02 05:09:36 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2012-04-02 05:09:36 +0000 |
commit | f0936aaf18ee508c59a0539e3e3e8f930e112d7f (patch) | |
tree | 8fadac82a00b168fb06408f5a89fbc99e51d6435 /config/routes.rb | |
parent | 3db1fa6b839b8cf98bb83c879b3723f922a1335c (diff) | |
download | redmine-f0936aaf18ee508c59a0539e3e3e8f930e112d7f.tar.gz redmine-f0936aaf18ee508c59a0539e3e3e8f930e112d7f.zip |
scm: fix revisions page "OK" button always returns 404 error (#10567)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9299 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'config/routes.rb')
-rw-r--r-- | config/routes.rb | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/config/routes.rb b/config/routes.rb index 25a7ca59b..5cba46c00 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -270,6 +270,9 @@ ActionController::Routing::Routes.draw do |map| repository_views.connect 'projects/:id/repository/:repository_id/show/*path', :requirements => { :path => /.+/ } + repository_views.connect 'projects/:id/repository/:repository_id/revision', + :action => 'revision' + repository_views.connect 'projects/:id/repository/revisions', :action => 'revisions' repository_views.connect 'projects/:id/repository/revisions.:format', @@ -296,13 +299,12 @@ ActionController::Routing::Routes.draw do |map| repository_views.connect 'projects/:id/repository/:action/*path', :requirements => { :action => /(browse|show|entry|changes|annotate|diff)/ } + repository_views.connect 'projects/:id/repository/revision', + :action => 'revision' + repository_views.connect 'projects/:id/repository/:repository_id', :action => 'show' end - - repositories.connect 'projects/:id/repository/revision', - :action => 'revision', - :conditions => {:method => [:get, :post]} end # additional routes for having the file name at the end of url |