e97696bf0ffbe83d71bf11befb14a46b9134b245
hiram
  Thu Feb 6 11:19:25 2025 -0800
allow /gbdb/genark/ to serve up the GenArk hubs instead of hgdownload refs #34706

diff --git src/hg/hgGateway/hgGateway.c src/hg/hgGateway/hgGateway.c
index 9455fdf79bd..dd73b21af61 100644
--- src/hg/hgGateway/hgGateway.c
+++ src/hg/hgGateway/hgGateway.c
@@ -128,31 +128,31 @@
                                   char *position)
 /* Write JSON for the info needed to populate the 'Find Position' section. */
 {
 char *genome = hGenome(db);
 if (isEmpty(genome))
     {
     jsonWriteStringf(jw, "error", "No genome for db '%s'", db);
     }
 else
     {
     jsonWriteString(jw, "db", db);
     jsonWriteNumber(jw, "taxId", taxId);
     jsonWriteString(jw, "genome", genome);
     struct slPair *dbOptions = NULL;
     char genomeLabel[PATH_LEN*4];
-    if (isNotEmpty(hubUrl) && !startsWith("/gbdb", hubUrl))
+    if (! isCuratedHubUrl(hubUrl))
         {
         struct trackHub *hub = hubConnectGetHub(hubUrl);
         if (hub == NULL)
             {
             jsonWriteStringf(jw, "error", "Can't connect to hub at '%s'", hubUrl);
             return;
             }
         struct dbDb *dbDbList = trackHubGetDbDbs(hub->name);
         dbOptions = trackHubDbDbToValueLabel(dbDbList);
         safecpy(genomeLabel, sizeof(genomeLabel), hub->shortLabel);
         jsonWriteString(jw, "hubUrl", hubUrl);
         }
     else
         {
         dbOptions = hGetDbOptionsForGenome(trackHubSkipHubName(genome));