26754e1af309a8b7c47a44f22a114421d3da003b lrnassar Wed May 14 16:18:19 2025 -0700 Improving the new hubConnect redirect page with more information, a link to connect another hub, a disclaimer, and a temporary note that is more visually captivating to make sure users don't wait for the automatic refresh. Refs #29899 diff --git src/hg/hgHubConnect/hgHubConnect.c src/hg/hgHubConnect/hgHubConnect.c index e383ef29c36..5e361875348 100644 --- src/hg/hgHubConnect/hgHubConnect.c +++ src/hg/hgHubConnect/hgHubConnect.c @@ -1426,51 +1426,55 @@ 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); char headerText[1024]; safef(headerText, sizeof(headerText), "Hub Connect Successful"); cartWebStart(cart, NULL, "%s", headerText); struct trackHub *tHub = hub->trackHub; +hPrintf("<P><B style='color: red;'>Note:</B> As of May 27 this page <B>no longer redirects</B> to the gateway. Make a genome selection below to go directly to the tracks display. This message will be removed July 8th.</P>"); + +hPrintf("<P><B>%s</B> now connected. Select a genome below to see the tracks display, or <A href=\"./hgHubConnect#unlistedHubs\">connect another hub</A>.</P>", tHub->shortLabel); hPrintf("<P><B>Hub Description:</B> %s</P>", tHub->longLabel); -hPrintf("<P><B>Contact email:</B> <A HREF=\"mailto:%s\">%s</A>.</B> Please contact them with questions about the data.</P>", tHub->email, tHub->email); +hPrintf("<P><B>Contact email:</B> <A HREF=\"mailto:%s\">%s</A>.</B> Use this contact for all data questions.</P>", tHub->email, tHub->email); struct trackHubGenome *genomeList = tHub->genomeList; -hPrintf("<P>Select a genome assembly below to go back to the genome browser, with this hub connected:</P>"); hPrintf("<ul>"); for(; genomeList; genomeList = genomeList->next) { char *desc = genomeList->description; if (desc==NULL) desc = hFreezeFromDb(genomeList->name); char *org = trackHubSkipHubName( genomeList->organism ); if (org==NULL) org = hOrganism(genomeList->name); hPrintf("<li><A href=\"../cgi-bin/hgTracks?db=%s&%s&position=lastDbPos\">%s: %s</A></li>",genomeList->name, cartSidUrlString(cart), org, desc); } hPrintf("</ul>"); +hPrintf("<P><I>Hubs are created and maintained by external sources. UCSC is not responsible for their content and status.</I></P>"); + return 1; } static void doResetHub(struct cart *theCart) { char *url = cartOptionalString(cart, hgHubCheckUrl); if (url != NULL) { udcSetCacheTimeout(1); unsigned id = hubResetError(url); tryHubOpen(id); } else errAbort("must specify url in %s\n", hgHubDataText);