c2e376e7b6d980f41ff903e6374378d668f11770
kate
  Thu Oct 22 14:41:52 2020 -0700
Multi-region features for sparse tracks.  With virt->multi, needs debug. refs #26385

diff --git src/hg/hgTracks/extTools.c src/hg/hgTracks/extTools.c
index f28eb44..fa4da67 100644
--- src/hg/hgTracks/extTools.c
+++ src/hg/hgTracks/extTools.c
@@ -187,31 +187,31 @@
 
 // construct an invisible CGI form with the given parameters
 printf("<html>\n<head>\n");
 generateCspMetaHeader(stdout);
 printf("</head>\n<body>\n");
 
 if (debug)
     printf("Target URL: %s<p>", et->url);
 
 char *chromName;
 int winStart, winEnd;
 char *db = cartString(cart, "db");
 char *pos = cartString(cart, "position");
 
 // Try to deal with virt chrom position used by hgTracks.
-if (startsWith("virt:", cartUsualString(cart, "position", "")))
+if (startsWith(MULTI_REGION_CHROM, cartUsualString(cart, "position", "")))
     pos = cartString(cart, "nonVirtPosition");
 
 if (!parsePosition(pos, &chromName, (uint *)&winStart, (uint *)&winEnd))
     errAbort("Can't parse position '%s'", pos);
 int len = winEnd-winStart;
 
 char start1[255];
 safef(start1, sizeof(start1), "%d", winStart+1);
 
 char *url = replaceInUrl(et->url, "", cart, db, chromName, winStart, winEnd, NULL, TRUE, NULL);
 
 char *method = "POST";
 if (et->isHttpGet)
     method = "GET";