Fix Create New Page and Rename Page dialogs redirect behaviour

This commit is contained in:
Jamie Oliver
2013-02-19 21:29:21 +00:00
parent 09257deaae
commit 394cf0bc8e
@@ -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('/');