From: Dan Brook Date: Mon, 1 Apr 2013 21:39:29 +0000 (+0200) Subject: Merge branch 'branch-selector-fix' X-Git-Tag: 0.004002~2 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FGitalist.git;a=commitdiff_plain;h=df06d2a1f740e96af324cc839d4300bba7c8228a;hp=0493e65778d860a3c78cd429b0ae843e545ebfec Merge branch 'branch-selector-fix' * branch-selector-fix: The branch selector now sends you to the correct url --- 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(){