702cc90549aa4b82a4318d5bfdca9ea55ed732ba
braney
  Mon Oct 3 14:12:53 2022 -0700
build URLs into curated assemblies on hubs

diff --git src/hg/hgConvert/hgConvert.c src/hg/hgConvert/hgConvert.c
index a668296..c30b4dc 100644
--- src/hg/hgConvert/hgConvert.c
+++ src/hg/hgConvert/hgConvert.c
@@ -295,31 +295,31 @@
 	    qStart = chain->qStart;
 	    qEnd = chain->qEnd;
 	    }
 	blockSize = chainTotalBlockSize(chain);
         /* Check if the toDb database exists and if the chromosome
            sequence file (of the hgConvert result) exists in the location
            specified in chromInfo for the toDb. */
 
         boolean chromSeqExists = (sqlDatabaseExists(toDb->name) &&
 				  chromSeqFileExists(toDb->name, chain->qName));
         /* Check if the toDb has active set to 1 in dbDb if the toDb
            database exists.
            If these conditions are met then print position link to
            browser for toDb, otherwise just print position without link. */
         boolean startedAnchor = FALSE;
-        if (hDbIsActive(toDb->name) && chromSeqExists)
+        if ((hDbIsActive(toDb->name) && chromSeqExists) || startsWith("hub:",toDb->nibPath))
             {
 	    printf("<A HREF=\"%s?db=%s&position=%s:%d-%d\">",
 		   hgTracksName(), toDb->name, chain->qName, qStart+1, qEnd);
             startedAnchor = TRUE;
             }
         else if (sameString(toDb->nibPath, "genark"))
             {
             char *hubUrl = genarkUrl(toDb->name);
             if (hubUrl)
                 {
                 startedAnchor = TRUE;
                 printf("<A HREF=\"%s?genome=%s&hubUrl=%s&position=%s:%d-%d\">",
 		   hgTracksName(), toDb->name, hubUrl, chain->qName, qStart+1, qEnd);
                 }
             }