e24258cb9af339295d713ab060cadcb284d2cb20 lrnassar Thu Jul 16 18:05:51 2026 -0700 Add db= to three more link builders found in QA follow-up. refs #37840 QA (Gerardo) found the "Go to <track> track controls" link on hgc feature pages still lacked db=; a completeness sweep of every hTrackUiForTrack caller turned up two more of the same idiom. Add the current-assembly db= to: hgc.c printTrackUiLink() (rendered via printTrackHtml on most hgc detail pages), lib/hui.c the related-tracks link, and lib/barChartUi.c the second isPopup "Change" link in barChartCfgUiSelectEachBar (twin of the one already fixed in barChartFacetedUi). diff --git src/hg/lib/hui.c src/hg/lib/hui.c index a8269264212..03f819249e5 100644 --- src/hg/lib/hui.c +++ src/hg/lib/hui.c @@ -10799,31 +10799,31 @@ hashReplace(otherTracksAndDesc, cloneString(otherTrack), cloneString(why)); } struct hashEl *hel, *helList = hashElListHash(otherTracksAndDesc); for (hel = helList; hel != NULL; hel = hel->next) { char *otherTrack = (char *)hel->name; char *why = (char *)hel->val; struct trackDb *otherTdb = hashFindVal(trackHash, otherTrack); // super tracks are not in the hash: if (!otherTdb) otherTdb = tdbForTrack(database, otherTrack, NULL); if (otherTdb) { puts("<li>"); - printf("<a href=\"%s?g=%s&%s\">%s</a>", hTrackUiForTrack(otherTdb->track), otherTdb->track, cartSidUrlString(cart), otherTdb->shortLabel); + printf("<a href=\"%s?db=%s&g=%s&%s\">%s</a>", hTrackUiForTrack(otherTdb->track), database, otherTdb->track, cartSidUrlString(cart), otherTdb->shortLabel); puts(": "); puts(why); } } puts("</ul>\n"); } sqlFreeResult(&sr); hFreeConn(&conn); } char *gcOnFlyWinSize(struct cart *cart) /* Return window size for GC on the fly track calculation */ { char *returnSize = NULL; char *s = cartOptionalString(cart, gcOnFlyWindowSize);