d84555710af610b002bd9492ca0702d622c00bc8
chmalee
  Thu Mar 5 11:07:17 2026 -0800
Oops I overcorrected when fixing 3fb0b5d2a3d, which led to weird conditions where sometimes a genark hub would show up under 'Connected Hubs' depending on where you searched for the genark genome. When creating links to genarks, we only need the db= parameter, as fixUpDb in the cart code handles connecting to genarks transparently. So remove explicit hubUrl and genome parameters from genark links in the menu bar and in hgSearch ajax calls, refs #36535

diff --git src/hg/js/hgSearch.js src/hg/js/hgSearch.js
index 6990f7afd5b..895fa7de179 100644
--- src/hg/js/hgSearch.js
+++ src/hg/js/hgSearch.js
@@ -649,34 +649,30 @@
             parentDiv.empty();
             if (uiState.search) {
                 parentDiv.html("<p>Genome changed, click Search to search this assembly.</p>");
             }
             updateCurrentGenomeLabel();
             changeSearchResultsLabel();
         }
         $("#spinner").remove();
     }
 
     function onGenomeQuickSelect(item) {
         // Shared handler for both search bar and quick-select dropdown
         db = item.genome;
         uiState.db = item.genome;
         var cmd = { cgiVar: {db: item.genome}, getUiState: {} };
-        if (item.hubUrl) {
-            cmd.cgiVar.hubUrl = item.hubUrl;
-            cmd.cgiVar.genome = item.genome;
-        }
         cart.send(cmd, handleGenomeChange);
         cart.flush();
     }
 
     function initGenomeAutocomplete() {
         // Initialize the genome search autocomplete using the standard function from utils.js
         setupGenomeSearchBar({
             inputId: 'genomeSearch',
             labelElementId: 'currentGenome',
             onSelect: onGenomeQuickSelect
         });
     }
 
     function updateCurrentGenomeLabel() {
         // Update the label showing current genome