cb8c0b5aec5b78aa6693d1df261752fd3f1a6ca5
galt
  Fri Sep 15 12:21:42 2023 -0700
Fixing hgTables for redirect-to-https. Galaxy will now work correctly since we give it our URL in a vaiable of that name, now updated in galaxy.c and mainPage.c. Fixed a few minor URLs to documentation too.

diff --git src/hg/hgTables/hgTables.c src/hg/hgTables/hgTables.c
index 524cd98..c5af16a 100644
--- src/hg/hgTables/hgTables.c
+++ src/hg/hgTables/hgTables.c
@@ -1342,31 +1342,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", cgiServerNamePort(), s, database);
+            hPrintf("<A HREF=\"https://%s/%s?db=%s", cgiServerNamePort(), s, database);
             }
         else
 	    hPrintf("<A HREF=\"%s?db=%s", hgTracksName(), database);
 	hPrintf("&position=%s", posBuf);
 	ensureVisibility(database, table, curTrack);
 	if (table2 != NULL)
             {
             struct trackDb *tdb2 = findTrack(table2, fullTrackList);
             ensureVisibility(database, table2, tdb2);
             }
 	hPrintf("\" TARGET=_blank>");
 	name = bed->name;
 	if (bed->name == NULL)
 	    name = posBuf;
 	if (sameString(name, posBuf))