94041c12e043016875ebd340568bda0ccaf122f6 lrnassar Wed Jul 8 13:53:22 2026 -0700 Add db= to cross-CGI hgTracks/hgTrackUi/hgc links to prevent wrong-assembly errors. refs #37840 Completes the incomplete work from #26892: links from the browser to a different CGI omitted db=, so the target CGI fell back to the cart's db (often wrong), producing "Can't find in track database " errors and broken shared links. Adds the current-assembly db to link builders across hgTracks (chromGraphTrack, expRatioTracks, config ruler and per-track configure links, variation), hgVai, hgFileUi, hgGtexTrackSettings, hgBlat, hgGene, hgNear, the barChart/GTEx faceted UI (facetedBar, barChartUi, gtexUi), and the hgTrackUi group-configure link. diff --git src/hg/hgGtexTrackSettings/hgGtexTrackSettings.c src/hg/hgGtexTrackSettings/hgGtexTrackSettings.c index c7cface7d4a..b5a411d1881 100644 --- src/hg/hgGtexTrackSettings/hgGtexTrackSettings.c +++ src/hg/hgGtexTrackSettings/hgGtexTrackSettings.c @@ -63,35 +63,35 @@ "\n" " \n" " \n" " \n" " \n" " \n" ); if (tdb->parent) { // link to supertrack char *encodedMapName = cgiEncode(tdb->parent->track); char *chromosome = cartUsualString(cart, "c", hDefaultChrom(database)); puts(" "); printf( - " \n" + " \n" " \n" " \n", hgTrackUiName(), cartSessionVarName(), cartSessionId(cart), - chromosome, encodedMapName, tdb->parent->shortLabel + database, chromosome, encodedMapName, tdb->parent->shortLabel ); freeMem(encodedMapName); } puts( " \n" ); puts( "
\n" ); printGoButton(); puts( "
\n" " \n" ); }