mirror of https://github.com/apache/archiva.git
take care of hash with already a repositoryUd
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1370426 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
ae610b03b7
commit
816988abf0
|
@ -758,12 +758,12 @@ define("archiva.search",["jquery","i18n","jquery.tmpl","choosen","knockout","kno
|
||||||
// #browse~internal/org.apache.maven
|
// #browse~internal/org.apache.maven
|
||||||
// or #artifact~snapshots/org.apache.maven.plugins/maven-compiler-plugin
|
// or #artifact~snapshots/org.apache.maven.plugins/maven-compiler-plugin
|
||||||
var currentHash=window.location.hash;
|
var currentHash=window.location.hash;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$.log("currentHash:"+currentHash);
|
$.log("currentHash:"+currentHash);
|
||||||
|
var newLocation = currentHash.substringBeforeFirst("/");
|
||||||
var newLocation = currentHash.substringBeforeFirst("/");// "#browse";
|
// maybe the current hash contains a repositoryId so remove it
|
||||||
|
if (newLocation.indexOf("~")>-1){
|
||||||
|
newLocation=currentHash.substringBeforeFirst("");
|
||||||
|
}
|
||||||
if (selectedRepository){
|
if (selectedRepository){
|
||||||
newLocation+="~"+selectedRepository;
|
newLocation+="~"+selectedRepository;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue