aboutsummaryrefslogtreecommitdiffstats
path: root/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/archiva/search.js
diff options
context:
space:
mode:
Diffstat (limited to 'archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/archiva/search.js')
-rw-r--r--archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/archiva/search.js6
1 files changed, 5 insertions, 1 deletions
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);
}