]> source.dussan.org Git - archiva.git/commitdiff
oups that was failing
authorOlivier Lamy <olamy@apache.org>
Tue, 7 Aug 2012 20:42:37 +0000 (20:42 +0000)
committerOlivier Lamy <olamy@apache.org>
Tue, 7 Aug 2012 20:42:37 +0000 (20:42 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1370509 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/search.js

index 64073d693dd8a3b5f328571b0782804a04938fea..bf403cca67a82ffeeb31ef70b0965e011be7ba08 100644 (file)
@@ -762,7 +762,7 @@ define("archiva.search",["jquery","i18n","jquery.tmpl","choosen","knockout","kno
     var newLocation = currentHash.substringBeforeFirst("/");
     // maybe the current hash contains a repositoryId so remove it
     if (newLocation.indexOf("~")>-1){
-      newLocation=currentHash.substringBeforeFirst("");
+      newLocation=currentHash.substringBeforeFirst("~");
     }
     if (selectedRepository){
       newLocation+="~"+selectedRepository;