]> source.dussan.org Git - archiva.git/commitdiff
MRM-1767 changerepository location missing slash
authorEric Barboni <skygo@apache.org>
Mon, 6 Oct 2014 20:12:43 +0000 (22:12 +0200)
committerEric Barboni <skygo@apache.org>
Mon, 6 Oct 2014 20:12:43 +0000 (22:12 +0200)
archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/archiva/search.js

index a96b2928a3ac06c36d60639f0e0e5f44631a23df..ffabac778be59a14e45c94c6d1b7e85c22474bfd 100644 (file)
@@ -1407,6 +1407,13 @@ define("archiva.search",["jquery","jquery.ui","i18n","jquery.tmpl","select2","kn
     if (selectedRepository){
       newLocation+="~"+selectedRepository;
     }
+    if (currentHash.contains("/")) {
+        // MRM-1767 
+        // from all to internal
+        // #browse -> #browse~internal
+        // #browse/org.a.....  -> #browse~internal/org.a.... not #browse~internalorg.a
+        newLocation += "/";
+    }
     newLocation += currentHash.substringAfterFirst("/");
     // do we have extra path after repository ?