mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-20 19:08:21 +00:00
modify wiki-mode to list-mode url (#2675)
This commit is contained in:
@@ -96,8 +96,9 @@ class MainPanel extends Component {
|
||||
|
||||
switchViewMode = (mode) => {
|
||||
cookie.save('view_mode', mode, { path: '/' });
|
||||
let repoName = this.state.currentRepoInfo.repo_name;
|
||||
let dirPath = this.props.isViewFile ? Utils.getDirName(this.props.path) : this.props.path;
|
||||
window.location.href = siteRoot + '#common/lib/' + repoID + dirPath;
|
||||
window.location.href = siteRoot + 'library/' + repoID + '/' + repoName + dirPath;
|
||||
}
|
||||
|
||||
onSideNavMenuClick = () => {
|
||||
|
Reference in New Issue
Block a user