25eac8765c2e8a7300a791d0fe33e91c33e3c31f
galt
  Wed Sep 20 17:11:37 2023 -0700
hgTables - Making links work better to support http or https. refs #32257

diff --git src/hg/hgTables/schema.c src/hg/hgTables/schema.c
index aada220..dd8324a 100644
--- src/hg/hgTables/schema.c
+++ src/hg/hgTables/schema.c
@@ -182,34 +182,34 @@
 	hPrintf("</TD>");
 	}
     puts("</TR>");
     if (example != NULL)
 	example = example->next;
     }
 hTableEnd();
 sqlFreeResult(&sr);
 }
 
 static void explainCoordSystem()
 /* Our coord system is counter-intuitive to users.  Warn them in advance to
  * reduce the frequency with which they find this "bug" on their own and
  * we have to explain it on the genome list. */
 {
-puts("<BR><I>Note: all start coordinates in our database are 0-based, not \n"
+printf("<BR><I>Note: all start coordinates in our database are 0-based, not \n"
  "1-based.  See explanation \n"
- "<A HREF=\"http://genome.ucsc.edu/FAQ/FAQtracks#tracks1\">"
-     "here</A>.</I>");
+ "<A HREF=\"http%s://genome.ucsc.edu/FAQ/FAQtracks#tracks1\">"
+     "here</A>.</I>", cgiAppendSForHttps());
 }
 
 
 static void printSampleRows(int sampleCount, struct sqlConnection *conn, char *table)
 /* Put up sample values. */
 {
 char query[256];
 struct sqlResult *sr;
 char **row;
 int i, columnCount = 0;
 int itemRgbCol = -1;
 boolean showItemRgb = FALSE;
 
 showItemRgb=bedItemRgb(findTdbForTable(database, curTrack, table, ctLookupName));
 // should we expect itemRgb     instead of "reserved"