From 8385e531c989889ff41e1debbff726bc091107a2 Mon Sep 17 00:00:00 2001 From: Eric Barboni Date: Mon, 6 Oct 2014 22:12:43 +0200 Subject: [PATCH] MRM-1767 changerepository location missing slash --- .../archiva-webapp/src/main/webapp/js/archiva/search.js | 7 +++++++ 1 file changed, 7 insertions(+) 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 a96b2928a..ffabac778 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 ? -- 2.39.5