1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-03 16:10:26 +00:00

add client url check logic

This commit is contained in:
LeoSirius
2019-06-28 11:01:55 +08:00
parent 5d2421bc68
commit 7c12cc271b

View File

@@ -76,7 +76,7 @@ class App extends Component {
}
navigateClientUrlToLib = () =>{
if(window.location.hash){
if(window.location.hash && window.location.hash.indexOf('common/lib') != -1){
let splitUrlArray = window.location.hash.split('/');
let repoID = splitUrlArray[splitUrlArray.length-2];
let url = siteRoot + 'library/' + repoID + '/';