From: Dennis Kaarsemaker Date: Fri, 3 Aug 2012 17:53:02 +0000 (+0200) Subject: The branch selector now sends you to the correct url X-Git-Tag: 0.004002~2^2 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FGitalist.git;a=commitdiff_plain;h=8d2e9264ba847b07c5a5a8dc612e01fcb219cdef The branch selector now sends you to the correct url It used to not escape the branch name, so branches like seveas/branch_selector_fix were not really reachable via the selector --- diff --git a/root/static/js/site.js b/root/static/js/site.js index bcf9739..5af7d11 100755 --- a/root/static/js/site.js +++ b/root/static/js/site.js @@ -47,7 +47,7 @@ function uriFor(action, sha1) { function switchBranch() { var branch = jQuery('#branch-list').val(), action = branch != '...' ? 'current' : 'heads'; - document.location.href = uriFor(action, branch); + document.location.href = uriFor(action, encodeURIComponent(branch).replace('/', '%2F')); } function compareDiffs(){