c5da1c6a2532482e2f990c4a23c80f03654b5324
braney
  Tue Dec 5 13:31:44 2023 -0800
make sure we put the geneTable name on the link from the description
lines

diff --git src/hg/near/hgNear/knownGene.c src/hg/near/hgNear/knownGene.c
index a1701b4..8ddbfc5 100644
--- src/hg/near/hgNear/knownGene.c
+++ src/hg/near/hgNear/knownGene.c
@@ -240,37 +240,38 @@
 void setupColumnKnownPos(struct column *col, char *parameters)
 /* Set up column that links to genome browser based on known gene
  * position. */
 {
 genePredPosMethods(col, genomeSetting("geneTable"));
 col->cellVal = knownPosCellVal;
 }
 
 static void linkToDetailsCellPrint(struct column *col, struct genePos *gp, 
 	struct sqlConnection *conn)
 /* Print a link to known genes details page. */
 {
 char *s = col->cellVal(col, gp, conn);
 fillInKnownPos(gp, conn);
 hPrintf("<TD>");
-hPrintf("<A HREF=\"../cgi-bin/hgGene?%s&%s=%s&%s=%s&%s=%s&%s=%d&%s=%d\">", 
+hPrintf("<A HREF=\"../cgi-bin/hgGene?%s&%s=%s&%s=%s&%s=%s&%s=%d&%s=%d&%s=%s\">", 
 	cartSidUrlString(cart), 
 	"db", database,
 	"hgg_gene", gp->name,
 	"hgg_chrom", gp->chrom,
 	"hgg_start", gp->start,
-	"hgg_end", gp->end);
+	"hgg_end", gp->end,
+        "hgg_type", genomeSetting("geneTable"));
 if (s == NULL) 
     {
     hPrintf("n/a");
     }
 else
     {
     hPrintEncodedNonBreak(s);
     freeMem(s);
     }
 hPrintf("</A></TD>");
 }
 
 void fillInKnownPos(struct genePos *gp, struct sqlConnection *conn)
 /* If gp->chrom is not filled in go look it up. */
 {