diff --git a/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/archiva/repository-groups.js b/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/archiva/repository-groups.js index cfa68350d..ce567c882 100644 --- a/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/archiva/repository-groups.js +++ b/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/archiva/repository-groups.js @@ -293,7 +293,8 @@ function(jquery,i18n,jqueryTmpl,bootstrap,jqueryValidate,jqueryUi,ko) { dataType: 'text', success: function(applicationUrl){ - self.repositoryGroupsViewModel.managedRepositories(mapManagedRepositories(data,applicationUrl)); + self.repositoryGroupsViewModel.managedRepositories( + mapManagedRepositories(data,applicationUrl?applicationUrl:window.location.toString().substringBeforeLast("/"))); self.repositoryGroupsViewModel.applicationUrl=applicationUrl; $.ajax("restServices/archivaServices/repositoryGroupService/getRepositoriesGroups", { type: "GET",