From 7c12cc271b7fd91f998483b823f914ba4b6df84e Mon Sep 17 00:00:00 2001 From: LeoSirius Date: Fri, 28 Jun 2019 11:01:55 +0800 Subject: [PATCH] add client url check logic --- frontend/src/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/app.js b/frontend/src/app.js index 929a2b6a98..eab0ca7682 100644 --- a/frontend/src/app.js +++ b/frontend/src/app.js @@ -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 + '/';