1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-05 00:43:53 +00:00

repair bug

This commit is contained in:
shanshuirenjia
2018-12-13 11:05:47 +08:00
parent c216f199a2
commit c2da62e86b
4 changed files with 9 additions and 10 deletions

View File

@@ -376,7 +376,7 @@ class DirentListItem extends React.Component {
render() {
let { path, dirent } = this.props;
let direntPath = Utils.joinPath(path, dirent.name);
let href = siteRoot + 'wiki/lib/' + this.props.repoID + direntPath;
let href = siteRoot + 'wiki/lib/' + this.props.repoID + Utils.encodePath(direntPath);
return (
<Fragment>
<tr className={this.state.highlight ? 'tr-highlight' : ''} onMouseEnter={this.onMouseEnter} onMouseOver={this.onMouseOver} onMouseLeave={this.onMouseLeave}>