Merge branch 'branch-selector-fix'
Dan Brook [Mon, 1 Apr 2013 21:39:29 +0000 (23:39 +0200)]
* branch-selector-fix:
  The branch selector now sends you to the correct url

root/static/js/site.js

index bcf9739..5af7d11 100755 (executable)
@@ -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(){