diff --git a/app/views/git/repositories/_show.html.haml b/app/views/git/repositories/_show.html.haml
index 1c09afb69..c3f4229d2 100644
--- a/app/views/git/repositories/_show.html.haml
+++ b/app/views/git/repositories/_show.html.haml
@@ -28,11 +28,11 @@
- if entry.is_a? Grit::Blob
.pic= image_tag 'code.png'
.name
- = link_to(entry.name, blob_path(@project, 'rosa_devel', entry_path), :class => 'files-see').encode_to_default
+ = link_to(entry.name, blob_path(@project, @treeish, entry_path), :class => 'files-see').encode_to_default
- else
.pic= image_tag 'folder.png'
.name
- = link_to(entry.name, tree_path(@project, 'rosa_devel', entry_path), :class => 'files-see').encode_to_default
+ = link_to(entry.name, tree_path(@project, @treeish, entry_path), :class => 'files-see').encode_to_default
%td
%span{:style => "display: none;"}= commit.committed_date || commit.authored_date#> Dec 31, 2011
= l(commit.committed_date || commit.authored_date, :format => :short) #31 декабря 2011
diff --git a/app/views/git/shared/_whereami.html.haml b/app/views/git/shared/_whereami.html.haml
index 5ec21885e..f01ba7fb0 100644
--- a/app/views/git/shared/_whereami.html.haml
+++ b/app/views/git/shared/_whereami.html.haml
@@ -1,5 +1,5 @@
%p#file-name1
- = link_to @project.name, tree_path(@project, :treeish => html_escape(@treeish.encode_to_default))
+ = link_to @project.name, tree_path(@project, :treeish => @treeish.encode_to_default)
= File::SEPARATOR
- if @path.present?
- paths = File.split(@path)