69339a3239e9643fbde81b7dd43bc2978a02e13e hiram Wed May 25 10:38:27 2011 -0700 changing uses of cgiServerName to better cgiServerNamePort diff --git src/hg/hgTables/hgTables.c src/hg/hgTables/hgTables.c index 822c1b6..79f705b 100644 --- src/hg/hgTables/hgTables.c +++ src/hg/hgTables/hgTables.c @@ -1443,31 +1443,31 @@ struct lm *lm = lmInit(64*1024); struct bed *bedList, *bed; bedList = cookedBedList(conn, table, region, lm, NULL); for (bed = bedList; bed != NULL; bed = bed->next) { char *name; int start = max(0,bed->chromStart+1-outputPad); int end = min(hChromSize(database, bed->chrom),bed->chromEnd+outputPad); safef(posBuf, sizeof(posBuf), "%s:%d-%d", bed->chrom, start, end); /* Construct browser anchor URL with tracks we're looking at open. */ if (doGalaxy()) { char *s, *script = hgTracksName(); s = strstr(script, "cgi-bin"); - hPrintf("<A HREF=\"http://%s/%s?db=%s", cgiServerName(), s, database); + hPrintf("<A HREF=\"http://%s/%s?db=%s", cgiServerNamePort(), s, database); } else hPrintf("<A HREF=\"%s?db=%s", hgTracksName(), database); hPrintf("&position=%s", posBuf); hPrintf("&%s=%s", table, hTrackOpenVis(database, table)); if (table2 != NULL) hPrintf("&%s=%s", table2, hTrackOpenVis(database, table2)); hPrintf("\" TARGET=_blank>"); name = bed->name; if (bed->name == NULL) name = posBuf; if (sameString(name, posBuf)) hPrintf("%s", posBuf); else {