diff --git a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/main.js b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/main.js index fbb0724d8..ab08067ca 100644 --- a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/main.js +++ b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/main.js @@ -80,8 +80,17 @@ $(function() { if (browse){ displayBrowseGroupId(browse); return; - }else{ - $.log("no browse"); + } + + var artifact= $.urlParam("artifact"); + // format groupId:artifactId org.apache.maven.plugins:maven-jar-plugin + // + if (artifact){ + if ( artifact.indexOf(':')>=0){ + var splitted = artifact.split(':'); + displayBrowseArtifactDetail(splitted[0],splitted[1],null,null); + return; + } } var screen = $.urlParam('screen'); 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 f8c14cb37..a9cd4a8cd 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 @@ -311,6 +311,10 @@ $(function() { displayGroupDetail(groupId,parentBrowseViewModel,null); } + displayBrowseArtifactDetail=function(groupId, artifactId){ + displayBrowseGroupId(groupId); + displayArtifactDetail(groupId,artifactId,null,null); + } mapbrowseResultEntries=function(data){ $.log("mapbrowseResultEntries");