Merge pull request #634 from jamieoliver/bug/new-rename-dialogs-redirect

Fix Create New Page and Rename Page dialogs redirect behaviour
This commit is contained in:
bootstraponline
2013-02-19 16:03:59 -08:00
@@ -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('/');