Fix new page default dir.
This commit is contained in:
@@ -157,7 +157,7 @@ $(document).ready(function() {
|
|||||||
var path = location.pathname;
|
var path = location.pathname;
|
||||||
// ensure there's more than one slash in pathname.
|
// ensure there's more than one slash in pathname.
|
||||||
if (path.split('/').length > 2) {
|
if (path.split('/').length > 2) {
|
||||||
path = path.substr(path.lastIndexOf('/')+1) + '/';
|
path = path.substr(0, path.lastIndexOf('/') + 1);
|
||||||
} else {
|
} else {
|
||||||
path = '';
|
path = '';
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user