74d52dbd8919f57e9fe3effdc49a2b49bfd928b5
max
  Tue Jul 18 14:19:57 2017 -0700
fixing crispr track on gbib, refs #19789

diff --git src/hg/hgc/bigBedClick.c src/hg/hgc/bigBedClick.c
index ee32fcf..13dee32 100644
--- src/hg/hgc/bigBedClick.c
+++ src/hg/hgc/bigBedClick.c
@@ -189,31 +189,31 @@
 }
 
 static void detailsTabPrintSpecial(char *name, char *val, struct slPair *extraFields)
 /* some extra fields require special printing code, they all start with '_'  */
 {
 if (sameWord(name, "_mismatchCounts"))
     extFieldMismatchCounts(val);
 else if (sameWord(name, "_crisprOfftargets"))
     extFieldCrisprOfftargets(val, extraFields);
 }
 
 static void seekAndPrintTable(char *url, off_t offset, struct slPair *extraFields)
 /* seek to 0 at url, get headers, then seek to offset, read tab-sep fields and output 
  * (extraFields are needed for some special field handlers) */
 {
-char *detailsUrl = replaceChars(url, "$db", database);
+char *detailsUrl = hReplaceGbdb(replaceChars(url, "$db", database));
 
 // open the URL
 struct lineFile *lf = lineFileUdcMayOpen(detailsUrl, TRUE);
 if (lf==NULL)
     {
     printf("Error: Could not open the URL referenced in detailsTabUrls, %s", detailsUrl);
     return;
     }
 
 // get the headers
 char *headLine = NULL;
 int lineSize = 0;
 lineFileNext(lf, &headLine, &lineSize);
 char *headers[1024];
 int headerCount = chopTabs(headLine, headers);