c94639dc8b59278cc5588f5291f1fccc373aeb49 chmalee Fri May 25 16:08:42 2018 -0700 get rid of hardcoded url setting in printCustomUrlWithLabel, fixes miRna/snoRna track, refs #21516 diff --git src/hg/hgc/hgc.c src/hg/hgc/hgc.c index 7728cc8..57fe664 100644 --- src/hg/hgc/hgc.c +++ src/hg/hgc/hgc.c @@ -911,31 +911,31 @@ { \ document.getElementById('hgcIframe').height = parseInt(height)+10; \ } \ </script> \ \ <iframe id='hgcIframe' src='%s' %s></iframe> \ <p>", eUrl, iframeOptions); } void printCustomUrlWithLabel(struct trackDb *tdb, char *itemName, char *itemLabel, char *urlSetting, boolean encode) /* Print custom URL specified in trackDb settings. */ { char urlLabelSetting[32]; // replace the $$ and other wildchards with the url given in tdb -char *url = getUrlSetting(tdb, "url"); +char *url = getUrlSetting(tdb, urlSetting); //char* eUrl = constructUrl(tdb, url, itemName, encode); if (url==NULL || isEmpty(url)) return; char* eUrl = replaceInUrl(url, itemName, cart, database, seqName, winStart, winEnd, tdb->track, encode); if (eUrl==NULL) return; /* create the url label setting for trackDb from the url setting prefix */ safef(urlLabelSetting, sizeof(urlLabelSetting), "%sLabel", urlSetting); char *linkLabel = trackDbSettingOrDefault(tdb, urlLabelSetting, "Outside Link:"); // if we got no item name from hgTracks or the item name does not appear in the URL // there is no need to show the item name at all