diff --git a/rhodecode/public/css/style.css b/rhodecode/public/css/style.css
--- a/rhodecode/public/css/style.css
+++ b/rhodecode/public/css/style.css
@@ -4667,7 +4667,7 @@ div.pr-details-title.closed,
div.pr-title {
font-size: 1.6em;
}
-div.pr-details-title{
+div.pr-details-title {
font-size: 1.6em;
margin: 0px 20px 0px 20px;
padding: 5px 0px 5px 10px;
diff --git a/rhodecode/templates/pullrequests/pullrequest_show.html b/rhodecode/templates/pullrequests/pullrequest_show.html
--- a/rhodecode/templates/pullrequests/pullrequest_show.html
+++ b/rhodecode/templates/pullrequests/pullrequest_show.html
@@ -71,7 +71,9 @@
##%elif h.is_git(c.pull_request.org_repo):
##
##%endif
- ${c.pull_request.org_ref_parts[0]}: ${c.pull_request.org_ref_parts[1]}
+
+ ## branch link is only valid if it is a branch
+ ${c.pull_request.org_ref_parts[0]}: ${c.pull_request.org_ref_parts[1]}
%if h.is_hg(c.pull_request.org_repo):
| ${_('Pull changes')} hg pull -r ${h.short_id(c.cs_ranges[-1].raw_id)} ${c.pull_request.org_repo.clone_url()}