diff --git a/app/views/repositories/_breadcrumbs.html.erb b/app/views/repositories/_breadcrumbs.html.erb index 233416477..86fe28cb5 100644 --- a/app/views/repositories/_breadcrumbs.html.erb +++ b/app/views/repositories/_breadcrumbs.html.erb @@ -1,5 +1,7 @@ <%= link_to(@repository.identifier.present? ? h(@repository.identifier) : 'root', - :action => 'show', :id => @project, :repository_id => @repository.identifier_param, :path => '', :rev => @rev) %> + :action => 'show', :id => @project, + :repository_id => @repository.identifier_param, + :path => nil, :rev => @rev) %> <% dirs = path.split('/') if 'file' == kind diff --git a/test/functional/repositories_subversion_controller_test.rb b/test/functional/repositories_subversion_controller_test.rb index 4e9bde9d2..188dd2fd8 100644 --- a/test/functional/repositories_subversion_controller_test.rb +++ b/test/functional/repositories_subversion_controller_test.rb @@ -67,6 +67,9 @@ class RepositoriesSubversionControllerTest < ActionController::TestCase assert_tag 'input', :attributes => {:name => 'rev'} assert_tag 'a', :content => 'Statistics' assert_tag 'a', :content => 'Atom' + assert_tag :tag => 'a', + :attributes => {:href => '/projects/subproject1/repository'}, + :content => 'root' end def test_show_non_default