diff --git a/lib/gollum/frontend/public/gollum/javascript/gollum.js b/lib/gollum/frontend/public/gollum/javascript/gollum.js index 9724f5cc..bf6d280f 100755 --- a/lib/gollum/frontend/public/gollum/javascript/gollum.js +++ b/lib/gollum/frontend/public/gollum/javascript/gollum.js @@ -24,7 +24,10 @@ function htmlEscape( str ) { function abspath(path, name){ // Make sure the given path starts at the root. if(name[0] != '/'){ - name = '/' + path + '/' + name; + name = '/' + name; + if (path) { + name = '/' + path + name; + } } var name_parts = name.split('/'); var newPath = name_parts.slice(0, -1).join('/');