fca649f40a04767fbd9c331ef4e4b37f25882bf0
angie
Mon Aug 18 09:16:01 2025 -0700
Changing tdb setting name from loraxBackendUrl (misnomer) to loraxIframeUrlBase.
diff --git src/hg/hgc/loraxClick.c src/hg/hgc/loraxClick.c
index acdcd7b8b36..5e34ae5a196 100644
--- src/hg/hgc/loraxClick.c
+++ src/hg/hgc/loraxClick.c
@@ -1,48 +1,48 @@
/* Details page for Lorax multi-tree viewer track type */
/* Copyright (C) 2025 The Regents of the University of California
* See kent/LICENSE or http://genome.ucsc.edu/license/ for licensing information. */
#include "common.h"
#include "cart.h"
#include "cheapcgi.h"
#include "hgc.h"
#include "jsHelper.h"
void doLorax(struct trackDb *tdb, char *item)
/* Display the Lorax multi-tree viewer. */
{
// Open page and get parameters from CGI
cartWebStart(cart, database, "%s: %s", genome, tdb->longLabel);
char *chrom = cartString(cart, "c");
int start = cartInt(cart, "o");
int end = cartInt(cart, "t");
// Set iframe style and make iframe with src=[lorax docker with chrom, start and end in URL]
char *iframeHeight = trackDbSetting(tdb, "loraxIframeHeight");
printf(
"\n",
"100%", iframeHeight);
// Get backend URL from trackDb setting, add chrom, start and end params
-char *backendUrl = trackDbSetting(tdb, "loraxBackendUrl");
+char *iframeUrlBase = trackDbSetting(tdb, "loraxIframeUrlBase");
printf("\n",
- backendUrl, chrom, start, end);
+ iframeUrlBase, chrom, start, end);
// jsIncludeFile throws an error due to CSP when invoked via pop-up, but is necessary when
// "Enable pop-up when clicking items" is disabled in Genome Browser.
// When invoked via pop-up, hgTracks has already included lorax.js, so the error can be
// ignored because the file has already been loaded.
jsIncludeFile("lorax.js", NULL);
// jsInline still works in pop-up mode even though jsIncludeFile doesn't. (ASH has no idea why.)
jsInlineF("loraxView('%s', %d, %d);", chrom, start, end);
printTrackHtml(tdb);
}