536e32480cf89093ba8b82ff4e73b0a9ca6ac389 chmalee Fri Oct 28 13:29:33 2022 -0700 Fix multiTerm searches and plain chromosome searches, refs #29693 diff --git src/hg/js/hgGateway.js src/hg/js/hgGateway.js index e11983a..914c974 100644 --- src/hg/js/hgGateway.js +++ src/hg/js/hgGateway.js @@ -1534,31 +1534,31 @@ // Make a form and submit it. In order for this to work in IE, the form // must be appended to the body. $form = $('
' + '' + '' + '' + '' + '' + '
'); $('body').append($form); $form.submit(); } else { // User has entered a search term with no suggestion, go to the disambiguation // page so the user can choose a position $('.jwGoIcon').removeClass('fa-play').addClass('fa-spinner fa-spin'); - window.location.assign("../cgi-bin/hgSearch?hgsid="+ window.hgsid + "&search=" + searchTerm); + window.location.assign("../cgi-bin/hgSearch?search=" + searchTerm + "&hgsid="+ window.hgsid ); } } function replaceHgsidInLinks() { // Substitute '$hgsid' with real hgsid in href's. $('a').each(function(ix, aEl) { var href = aEl.getAttribute('href'); if (href && href.indexOf('$hgsid') >= 0) { aEl.setAttribute('href', href.replace('$hgsid', window.hgsid)); } }); } function displaySurvey() { // If hg.conf specifies a survey link, then hgGateway.c has set corresponding global vars.