1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-21 19:37:28 +00:00

Merge pull request #2648 from haiwen/repo-share

Repo share
This commit is contained in:
Daniel Pan
2018-12-17 15:22:44 +08:00
committed by GitHub
22 changed files with 490 additions and 239 deletions

View File

@@ -96,7 +96,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;
}
}