1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-21 19:37:28 +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

@@ -91,7 +91,7 @@ class DirView extends React.Component {
window.history.pushState({url: fileUrl, path: direntPath}, direntPath, fileUrl);
} else {
const w=window.open('about:blank');
const url = siteRoot + 'lib/' + this.state.repoID + '/file' + direntPath;
const url = siteRoot + 'lib/' + this.state.repoID + '/file' + Utils.encodePath(direntPath);
w.location.href = url;
}
}