archiva-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sk...@apache.org
Subject git commit: MRM-1767 changerepository location missing slash
Date Mon, 06 Oct 2014 20:17:52 GMT
Repository: archiva
Updated Branches:
  refs/heads/master 70acb56d0 -> 8385e531c


MRM-1767 changerepository location missing slash

Project: http://git-wip-us.apache.org/repos/asf/archiva/repo
Commit: http://git-wip-us.apache.org/repos/asf/archiva/commit/8385e531
Tree: http://git-wip-us.apache.org/repos/asf/archiva/tree/8385e531
Diff: http://git-wip-us.apache.org/repos/asf/archiva/diff/8385e531

Branch: refs/heads/master
Commit: 8385e531c989889ff41e1debbff726bc091107a2
Parents: 70acb56
Author: Eric Barboni <skygo@apache.org>
Authored: Mon Oct 6 22:12:43 2014 +0200
Committer: Eric Barboni <skygo@apache.org>
Committed: Mon Oct 6 22:12:43 2014 +0200

----------------------------------------------------------------------
 .../archiva-webapp/src/main/webapp/js/archiva/search.js       | 7 +++++++
 1 file changed, 7 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/archiva/blob/8385e531/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/archiva/search.js
----------------------------------------------------------------------
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 a96b292..ffabac7 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
@@ -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 ?
 


Mime
View raw message