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){
|
function abspath(path, name){
|
||||||
// Make sure the given path starts at the root.
|
// Make sure the given path starts at the root.
|
||||||
if(name[0] != '/'){
|
if(name[0] != '/'){
|
||||||
name = '/' + path + '/' + name;
|
name = '/' + name;
|
||||||
|
if (path) {
|
||||||
|
name = '/' + path + name;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
var name_parts = name.split('/');
|
var name_parts = name.split('/');
|
||||||
var newPath = name_parts.slice(0, -1).join('/');
|
var newPath = name_parts.slice(0, -1).join('/');
|
||||||
|
|||||||
Reference in New Issue
Block a user