mirror of
https://github.com/haiwen/seahub.git
synced 2025-08-31 22:54:11 +00:00
repair file view bug
This commit is contained in:
@@ -133,7 +133,7 @@ class Wiki extends Component {
|
||||
this.enterViewFileState(tree, node, node.path);
|
||||
}
|
||||
} else {
|
||||
let url = siteRoot + 'lib/' + item.repo_id + '/file' + item.path;
|
||||
let url = siteRoot + 'lib/' + item.repo_id + '/file' + Utils.encodePath(item.path);
|
||||
let newWindow = window.open('about:blank');
|
||||
newWindow.location.href = url;
|
||||
}
|
||||
@@ -161,7 +161,7 @@ class Wiki extends Component {
|
||||
this.exitViewFileState(tree, node);
|
||||
} else {
|
||||
const w=window.open('about:blank');
|
||||
const url = siteRoot + 'lib/' + repoID + '/file' + node.path;
|
||||
const url = siteRoot + 'lib/' + repoID + '/file' + Utils.encodePath(node.path);
|
||||
w.location.href = url;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user