2d9d194b4bb0e2ec25ca1d45739fdd418632dbb8 lrnassar Wed Jul 8 13:53:54 2026 -0700 Add db= to same-CGI self-links in hgTrackUi and hgc. refs #37840 Extends #37840 to same-CGI links that omitted db= and relied on the cart db, which still broke as shared, bookmarked, or search-indexed URLs. In hgTrackUi adds db to the superTrack member list, container-configure, description, sibling-track, duplicate/unduplicate, and quickLift-remove links. In hgc adds the current assembly's db to the shared anchor helpers (hgcAnchorSomewhereExt, hgcAnchorPosition, hgcAnchorWindow, hgcAnchorTranslatedChain, hgcAnchorPseudoGene), covering all their callers, plus the getDna, htcExtSeq, refGene, stsMap, cutter, cgapSage, mgc, peakClusters, regMotif, and pubs links. The foreign-assembly variant hgcAnchorSomewhereDb and the db2=/qlSourceDb= params are left untouched. diff --git src/hg/hgc/bigRmskClick.c src/hg/hgc/bigRmskClick.c index e7c17189b57..0f01a0ead61 100644 --- src/hg/hgc/bigRmskClick.c +++ src/hg/hgc/bigRmskClick.c @@ -295,33 +295,33 @@ char *outLineTok = description; while ((outLine = strsep(&outLineTok,",")) != NULL) { char *outField; char *outFieldTok = outLine; printf (" \n"); while ((outField = strsep(&outFieldTok," ")) != NULL) { printf (" %s\n", data_style, outField); } printf (" \n"); printf ("Browser", hgTracksPathAndSettings (), database, fields[0], atoi(fields[6]) + 1, fields[7]); char *tbl = cgiUsualString ("table", cgiString ("g")); - printf (" - " - "DNA\n", hgcPathAndSettings (), fields[6], + "DNA\n", hgcPathAndSettings (), database, fields[6], (fields[3] != NULL ? cgiEncode (fields[3]) : ""), fields[0], fields[6], fields[7], cgiEncode (fields[5]), tbl); printf (" \n"); printf (" \n"); } printf("\n"); } else { printf("No item %s starting at %d\n", emptyForNull(item), start); } lmCleanup(&lm); bbiFileClose(&bbi);