06600d01f3b25b00c9797d98c8a63a8bfafd4d07 chmalee Mon Oct 31 12:24:09 2022 -0700 When doing a multi position search that redirects right to hgTracks, like 'NM_012090.5;NM_012421.4', when doing the redirect, turn the track on, refs #29693 diff --git src/hg/js/hgSearch.js src/hg/js/hgSearch.js index 6db98a4..1e96808 100644 --- src/hg/js/hgSearch.js +++ src/hg/js/hgSearch.js @@ -470,33 +470,37 @@ var shortLabel = position[1]; var longLabel = position[2]; url = "hgTrackUi?g=" + trackName; matchTitle = "" + shortLabel + " - " + longLabel + ""; } else { // unaligned mrnas and ests can still be searched but all you can get // to is the hgc page, no hgTracks for them goToHgTracks = true; hgTracksTitle = hgcTitle = title; if (["all_mrna", "all_est", "xenoMrna", "xenoEst", "intronEst"].includes(title)) { hgTracksTitle = title.replace(/all_/, ""); if (searchDesc.includes("Unaligned")) goToHgTracks = false; } if (goToHgTracks) { - url = "hgTracks?db=" + db + "&" + hgTracksTitle + "=pack&position=" + match.position + "&hgFind.matches=" + match.hgFindMatches; - if (match.extraSel) + url = "hgTracks?db=" + db + "&" + hgTracksTitle + "=pack&position=" + match.position; + if (match.hgFindMatches) { + url += "&hgFind.matches=" + match.hgFindMatches; + } + if (match.extraSel) { url += "&" + match.extraSel; + } if (match.highlight) { url += url[url.length-1] !== '&' ? '&' : ''; url += "highlight=" + match.highlight; } } else { url = "hgc?db=" + db + "&g=" + hgcTitle + "&i=" + match.position + "&c=0&o=0&l=0&r=0" ; } matchTitle = match.posName; //if (match.canonical === true) matchTitle = "" + matchTitle + ""; } var newListObj; if (printCount < 500) { if (printCount + 1 > 10) { newListObj = "