lib/gollum/frontend/public/gollum/javascript/gollum.js in gollum-2.1.0 vs lib/gollum/frontend/public/gollum/javascript/gollum.js in gollum-2.1.2

- old
+ new

@@ -155,10 +155,10 @@ e.preventDefault(); var path = location.pathname; // ensure there's more than one slash in pathname. if (path.split('/').length > 2) { - path = path.substr(path.lastIndexOf('/')+1) + '/'; + path = path.substr(0, path.lastIndexOf('/') + 1); } else { path = ''; } $.GollumDialog.init({