1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-02 15:38:15 +00:00

repair file view bug

This commit is contained in:
shanshuirenjia
2018-12-14 21:52:54 +08:00
parent 853659cdc6
commit d7564bcbba
6 changed files with 9 additions and 9 deletions

View File

@@ -107,7 +107,7 @@ class App extends Component {
let newWindow = window.open('markdown-editor');
newWindow.location.href = url;
} else {
let url = siteRoot + 'lib/' + selectedItem.repo_id + '/file' + selectedItem.path;
let url = siteRoot + 'lib/' + selectedItem.repo_id + '/file' + Utils.encodePath(selectedItem.path);
let newWindow = window.open('about:blank');
newWindow.location.href = url;
}