diff --git a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/search.js b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/search.js index 64073d693..bf403cca6 100644 --- a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/search.js +++ b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/search.js @@ -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;