532a820d6421a92ae969b83f0e267f60fae125b0
braney
  Mon Jul 1 14:14:54 2024 -0700
check for /gbdb values for remapping for curated track hubs

diff --git src/hg/lib/trackHub.c src/hg/lib/trackHub.c
index b464e76..0cd5c00 100644
--- src/hg/lib/trackHub.c
+++ src/hg/lib/trackHub.c
@@ -634,32 +634,32 @@
  * Also add it to hash, which is keyed by genome. */
 {
 struct lineFile *lf = udcWrapShortLineFile(url, NULL, MAX_HUB_GENOME_FILE_SIZE);
 struct trackHubGenome *list = NULL, *el;
 struct hash *hash = hub->genomeHash;
 
 struct hash *ra;
 while ((ra = raNextRecord(lf)) != NULL)
     {
     // allow that trackDb+hub+genome is in one single file
     if (hashFindVal(ra, "hub"))
         continue;
     if (hashFindVal(ra, "track"))
         break;
 
-    char *twoBitPath = hashFindVal(ra, "twoBitPath");
-    char *twoBitBptUrl = hashFindVal(ra, "twoBitBptUrl");
+    char *twoBitPath = hReplaceGbdb(hashFindVal(ra, "twoBitPath"));
+    char *twoBitBptUrl = hReplaceGbdb(hashFindVal(ra, "twoBitBptUrl"));
     char *genome, *trackDb;
     if (twoBitPath != NULL)
 	genome = addHubName(hashFindVal(ra, "genome"), hub->name);
     else
         genome = hashFindVal(ra, "genome");
     if (hub->defaultDb == NULL)
 	hub->defaultDb = genome;
     if (genome == NULL)
         badGenomeStanza(lf);
     if (hasWhiteSpace(genome))
         errAbort("Bad genome name: \"%s\". Only alpha-numeric characters and \"_\" are allowed ([A-Za-z0-9_]).", genome);
     if (hashLookup(hash, genome) != NULL)
         errAbort("Duplicate genome %s in stanza ending line %d of %s",
 		genome, lf->lineIx, lf->fileName);
     if (singleFile == NULL)