9e1a9c369a05df82c4d92a7ead7d97e00ac08be4
max
Wed May 7 08:09:31 2025 -0700
changing hubConnect to remove the redirect, refs #29899
diff --git src/hg/hgHubConnect/hgHubConnect.c src/hg/hgHubConnect/hgHubConnect.c
index 11005440a50..e383ef29c36 100644
--- src/hg/hgHubConnect/hgHubConnect.c
+++ src/hg/hgHubConnect/hgHubConnect.c
@@ -1411,72 +1411,66 @@
hubUpdateStatus( errCatch->message->string, NULL);
else
hubUpdateStatus(NULL, hub);
errCatchFree(&errCatch);
hDisconnectCentral(&conn);
}
static int doRedirect(struct cart *theCart)
{
struct hubConnectStatus *hub = hubConnectNewHub();
if (hub == NULL)
return 0;
-char headerText[1024];
-
char *errorMessage;
hubFindOrAddUrlInStatusTable(cart, hub->hubUrl, &errorMessage);
// if there is an error message, we stay in hgHubConnect
if (errorMessage != NULL)
return 0;
getDbAndGenome(cart, &database, &organism, oldVars);
-int redirDelay = 3;
-printf( "",
- redirDelay,"../cgi-bin/hgGateway",cartSidUrlString(cart));
+char headerText[1024];
safef(headerText, sizeof(headerText), "Hub Connect Successful");
cartWebStart(cart, NULL, "%s", headerText);
-hPrintf("You will be automatically redirected to the gateway page for this hub's default database "
- "(%s) in %d seconds.
",
- cartSidUrlString(cart),trackHubSkipHubName(database),redirDelay);
-
struct trackHub *tHub = hub->trackHub;
-if (tHub->email != NULL)
- {
- hPrintf("This hub is provided courtesy of %s. Please contact them with any questions.", tHub->email, tHub->email);
- }
-hPrintf("
");
-hPrintf("Hub: %s
", tHub->longLabel);
-hPrintf("Hub Genomes: ");
+hPrintf("
Hub Description: %s
", tHub->longLabel); +hPrintf("Contact email: %s. Please contact them with questions about the data.
", tHub->email, tHub->email); struct trackHubGenome *genomeList = tHub->genomeList; -bool firstTime = TRUE; +hPrintf("Select a genome assembly below to go back to the genome browser, with this hub connected:
"); +hPrintf("