diff options
-rw-r--r-- | archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/archiva/main.js | 2 | ||||
-rw-r--r-- | archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/archiva/search.js | 6 |
2 files changed, 6 insertions, 2 deletions
diff --git a/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/archiva/main.js b/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/archiva/main.js index c6cbbc694..e3e9d9b34 100644 --- a/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/archiva/main.js +++ b/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/archiva/main.js @@ -697,7 +697,7 @@ function(jquery,ui,sammy,tmpl,i18n,jqueryCookie,bootstrap,archivaSearch,jqueryVa if (groupId){ displayBrowseGroupId(groupId); } else { - displayBrowse(true); + displayBrowse(true,null); } }); this.get('#browse~:repositoryId/:groupId',function(context){ diff --git a/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/archiva/search.js b/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/archiva/search.js index f035b6f1c..8378fd7eb 100644 --- a/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/archiva/search.js +++ b/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/archiva/search.js @@ -1532,7 +1532,11 @@ define("archiva.search",["jquery","jquery.ui","i18n","jquery.tmpl","select2","kn if (selectedRepo){ location+="~"+selectedRepo; } - location+="/"+theGroupId+"."+datum.name; + if(theGroupId){ + location+="/"+theGroupId+"."+datum.name; + }else{ + location+="/"+datum.name; + } $.log("location:"+location); window.sammyArchivaApplication.setLocation(location); } |