ae09c0590da3e36fdf30c30fcec71c6aa3374663
braney
  Tue Jul 8 16:32:42 2025 -0700
fix bugs in quickLift refs #35609

diff --git src/hg/hgConvert/hgConvert.c src/hg/hgConvert/hgConvert.c
index ee94a321d1e..6cbbd11331d 100644
--- src/hg/hgConvert/hgConvert.c
+++ src/hg/hgConvert/hgConvert.c
@@ -355,35 +355,35 @@
         /* 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;
         visDy = newDyString(20);
         if ((hDbIsActive(toDb->name) && chromSeqExists) || startsWith("hub:",toDb->nibPath))
             {
             if (quickChain)
-                printf("<A HREF=\"%s?db=%s&position=%s:%d-%d&quickLift.%d.%s=%d\">",
-                   hgTracksName(), toDb->name,  chain->qName, qStart+1, qEnd, quickHub, toDb->name, quickChain);
+                printf("<A HREF=\"%s?hgsid=%s&db=%s&position=%s:%d-%d&quickLift.%d.%s=%d\">",
+                   hgTracksName(), cartSessionId(cart), toDb->name,  chain->qName, qStart+1, qEnd, quickHub, toDb->name, quickChain);
             else
-                printf("<A HREF=\"%s?db=%s&position=%s:%d-%d\">",
-		   hgTracksName(), toDb->name, chain->qName, qStart+1, qEnd);
+                printf("<A HREF=\"%s?hgsid=%s&db=%s&position=%s:%d-%d\">",
+		   hgTracksName(), cartSessionId(cart), toDb->name, chain->qName, qStart+1, qEnd);
             startedAnchor = TRUE;
             }
         else if (sameString(toDb->nibPath, "genark"))
             {
             char *hubUrl = genarkUrl(toDb->name);
             if (hubUrl)
                 {
                 startedAnchor = TRUE;
                 if (quickChain)
                     printf("<A HREF=\"%s?hgsid=%s&genome=%s&hubUrl=%s&position=%s:%d-%d&quickLift.%d.%s=%d\">",
                        hgTracksName(), cartSessionId(cart), toDb->name, hubUrl, chain->qName, qStart+1, qEnd, quickHub, toDb->name, quickChain);
                 else
                     printf("<A HREF=\"%s?hgsid=%s&genome=%s&hubUrl=%s&position=%s:%d-%d\">",
                        hgTracksName(), cartSessionId(cart), toDb->name, hubUrl, chain->qName, qStart+1, qEnd);
                 }