diff --git a/rhodecode/templates/files/files_annotate.html b/rhodecode/templates/files/files_annotate.html
--- a/rhodecode/templates/files/files_annotate.html
+++ b/rhodecode/templates/files/files_annotate.html
@@ -39,11 +39,11 @@
${c.file.mimetype}
${_('Options')}
${h.link_to(_('show source'),
- h.url('files_home',repo_name=c.repo_name,revision=c.cs.revision,f_path=c.f_path))}
+ h.url('files_home',repo_name=c.repo_name,revision=c.cs.raw_id,f_path=c.f_path))}
/ ${h.link_to(_('show as raw'),
- h.url('files_raw_home',repo_name=c.repo_name,revision=c.cs.revision,f_path=c.f_path))}
+ h.url('files_raw_home',repo_name=c.repo_name,revision=c.cs.raw_id,f_path=c.f_path))}
/ ${h.link_to(_('download as raw'),
- h.url('files_rawfile_home',repo_name=c.repo_name,revision=c.cs.revision,f_path=c.f_path))}
+ h.url('files_rawfile_home',repo_name=c.repo_name,revision=c.cs.raw_id,f_path=c.f_path))}
${_('History')}
@@ -71,6 +71,16 @@
%endif
+