diff --git a/rhodecode/templates/summary/summary.html b/rhodecode/templates/summary/summary.html --- a/rhodecode/templates/summary/summary.html +++ b/rhodecode/templates/summary/summary.html @@ -15,6 +15,21 @@ <%def name="head_extra()"> <link href="${h.url('atom_feed_home',repo_name=c.dbrepo.repo_name,api_key=c.rhodecode_user.api_key)}" rel="alternate" title="${_('%s ATOM feed') % c.repo_name}" type="application/atom+xml" /> <link href="${h.url('rss_feed_home',repo_name=c.dbrepo.repo_name,api_key=c.rhodecode_user.api_key)}" rel="alternate" title="${_('%s RSS feed') % c.repo_name}" type="application/rss+xml" /> + +<script> +redirect_hash_branch = function(){ + var branch = window.location.hash.replace(/^#(.*)/, '$1'); + if (branch){ + window.location = "${h.url('changelog_home',repo_name=c.repo_name,branch='__BRANCH__')}" + .replace('__BRANCH__',branch); + } +} +redirect_hash_branch(); +window.onhashchange = function() { + redirect_hash_branch(); +}; +</script> + </%def> <%def name="main()">