1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-19 01:44:13 +00:00

Merge pull request #2685 from haiwen/fix-group

fix-group
This commit is contained in:
Daniel Pan
2018-12-20 18:24:59 +08:00
committed by GitHub

View File

@@ -115,12 +115,12 @@ class App extends Component {
onGroupChanged = (groupID) => {
setTimeout(function(){
let url = new URL(window.location.origin);
let url;
if (groupID) {
url = url + 'group/' + groupID + '/';
url = siteRoot + 'group/' + groupID + '/';
}
else {
url = url + 'groups/';
url = siteRoot + 'groups/';
}
window.location = url.toString();
}, 1);