1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-02 15:38:15 +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

@@ -334,7 +334,7 @@ class Wiki extends Component {
this.showFile(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;
}
@@ -367,7 +367,7 @@ class Wiki extends Component {
this.showDir(node.path);
} 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;
}
}