]> source.dussan.org Git - archiva.git/commitdiff
fixed url of managed repos in repo group
authorMaria Odea B. Ching <oching@apache.org>
Fri, 3 May 2013 14:44:53 +0000 (14:44 +0000)
committerMaria Odea B. Ching <oching@apache.org>
Fri, 3 May 2013 14:44:53 +0000 (14:44 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1478820 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/archiva/repository-groups.js

index cfa68350dc0ef314870ad0ee8e2bfa9e8bee703d..ce567c88272a4b3fa75fbfe7be4859ab40e41d92 100644 (file)
@@ -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",