bfbc825c0932c9444ba781517f9cf4034aac233b chmalee Mon May 13 14:43:00 2024 -0700 Change hgTracks view dna link to not have the hgsid twice, refs #33691 diff --git src/hg/hgTracks/menu.c src/hg/hgTracks/menu.c index 0235e58..46e5f8f 100644 --- src/hg/hgTracks/menu.c +++ src/hg/hgTracks/menu.c @@ -252,32 +252,32 @@ } if (exportedDataHubsEnabled()) { #define exportedDataHubsMenuItemId "exportedDataHubsMenuItem" struct dyString *menuItemDs = dyStringCreate("<li><a href='#' id='%s'>Exported Data Hubs</a></li>", exportedDataHubsMenuItemId); menuStr = replaceChars(menuStr, "<!-- OPTIONAL_EXPORTED_TRACK_DATA_HUBS_MENU -->", dyStringCannibalize(&menuItemDs)); if (stringIn(exportedDataHubsMenuItemId, menuStr)) jsOnEventById("click", exportedDataHubsMenuItemId, "showExportedDataHubsPopup(); return false;"); } // Create top items in view menu safef(buf, sizeof(buf), "../cgi-bin/hgTracks?%s&hgt.psOutput=on", uiVars); appendLink(&links, buf, "PDF", "pdfLink", FALSE); -safef(buf, sizeof(buf), "%s&o=%d&g=getDna&i=mixed&c=%s&l=%d&r=%d&db=%s&%s", - hgcNameAndSettings(), winStart, chromName, winStart, winEnd, database, uiVars); +safef(buf, sizeof(buf), "%s&o=%d&g=getDna&i=mixed&c=%s&l=%d&r=%d&db=%s", + hgcNameAndSettings(), winStart, chromName, winStart, winEnd, database); //appendLink(&links, buf, "DNA", "dnaLink", FALSE); appendLinkWithShortcut(&links, buf, "DNA", "dnaLink", "Show DNA sequence in view", "v d", FALSE, FALSE); safef(buf, sizeof(buf), "../cgi-bin/hgConvert?hgsid=%s&db=%s", cartSessionId(cart), database); appendLink(&links, buf, "In Other Genomes (Convert)", "convertMenuLink", FALSE); safef(buf, sizeof(buf), "../cgi-bin/hgTracks?chromInfoPage=&hgsid=%s&db=%s", cartSessionId(cart), database); appendLinkWithShortcut(&links, buf, "Chromosomes", "showSizesLink", "Show a table of all chromsomes in this assembly (or scaffolds/contigs) and their sizes.", "v s", FALSE, FALSE); // add the sendTo menu if (fileExists("extTools.ra")) { appendLinkWithOnclick(&links, "#", "In External Tools", "extToolLink", "Show current sequence on a third-party website", "showExtToolDialog(); return false;", "s t", FALSE, FALSE); }