6a8e756b47341a5584f5c3fca4031401fe507020
lrnassar
  Mon Aug 24 11:21:22 2026 -0700
Updating GeneCards links to their new URL format per their request, also fixes dead cardsearch.pl links on RefSeq and denovoDb click pages. refs #38171

diff --git src/hg/hgc/hgc.c src/hg/hgc/hgc.c
index df91197dcbe..38d253edcfe 100644
--- src/hg/hgc/hgc.c
+++ src/hg/hgc/hgc.c
@@ -6704,32 +6704,31 @@
 	{
 	comment = row[0];
 	printf("<B>Riken/comment:</B> %s<BR>\n",comment);
 	}
     }
 }
 
 void printGeneCards(char *db, char *geneName)
 /* Print out a link to GeneCards (Human only).
  * Caller passes the assembly db so quickLifted callers can pass the source
  * (quickLiftDb) rather than the destination hub_NNN_<db>. */
 {
 if (startsWith("hg", db) && isNotEmpty(geneName))
     {
     printf("<B>GeneCards:</B> "
-	   "<A HREF = \"http://www.genecards.org/cgi-bin/cardsearch.pl?"
-	   "search=%s\" TARGET=_blank>%s</A><BR>\n",
+	   "<A HREF = \"https://www.genecards.org/card/%s\" TARGET=_blank>%s</A><BR>\n",
 	   geneName, geneName);
     }
 }
 
 int getImageId(struct sqlConnection *conn, char *acc)
 /* get the image id for a clone, or 0 if none */
 {
 int imageId = 0;
 if (sqlTableExists(conn, imageCloneTable))
     {
     struct sqlResult *sr;
     char **row;
     char query[128];
     sqlSafef(query, sizeof(query),
           "select imageId from %s where acc = '%s'",imageCloneTable, acc);