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:
@@ -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('/');
|
||||
|
||||
Reference in New Issue
Block a user