967e15b3e2949b32f3874695b94b55f8923d3c15
hiram
  Mon Apr 14 14:12:02 2025 -0700
use gbdb URL instead of h/ link to avoid week delay for assembly to show up in hgcentral table refs #34370

diff --git src/hg/makeDb/doc/asmHubs/mkHubIndex.pl src/hg/makeDb/doc/asmHubs/mkHubIndex.pl
index 529a5b3e1a6..c7aa2647bfb 100755
--- src/hg/makeDb/doc/asmHubs/mkHubIndex.pl
+++ src/hg/makeDb/doc/asmHubs/mkHubIndex.pl
@@ -412,32 +412,33 @@
        $taxId = `grep ^taxId "${configRa}" | cut -d' ' -f2`;
        chomp $taxId;
        $commonName = `grep ^commonName "${configRa}" | cut -d' ' -f2-`;
        chomp $commonName;
        $sciName = `grep ^scientificName "${configRa}" | cut -d' ' -f2-`;
        chomp $sciName;
        $asmDate = `grep ^assemblyDate "${configRa}" | cut -d' ' -f2-`;
        chomp $asmDate;
        $bioProject = `grep ^ncbiBioProject "${configRa}" | cut -d' ' -f2-`;
        chomp $bioProject;
        $bioSample = `grep ^ncbiBioSample "${configRa}" | cut -d' ' -f2-`;
        chomp $bioSample;
        $ncbiFtpLink = "https://ftp.ncbi.nlm.nih.gov/genomes/all/$accessionDir/${accessionId}_${asmName}";
     }
     my $hubUrl = "https://hgdownload.soe.ucsc.edu/hubs/$accessionDir/$accessionId";
+    my $gbdbUrl = "/gbdb/genark/$accessionDir/$accessionId";
     my $browserName = $commonName;
-    my $browserUrl = "https://genome.ucsc.edu/h/$accessionId";
+    my $browserUrl = "https://genome.ucsc.edu/cgi-bin/hgTracks?genome=$accessionId&hubUrl=$gbdbUrl/hub.txt";
     if ($asmId !~ m/^GC/) {
        $hubUrl = "https://hgdownload.soe.ucsc.edu/goldenPath/$asmId/bigZips";
        $browserUrl = "https://genome.ucsc.edu/cgi-bin/hgTracks?db=$asmId";
        $browserName = "$commonName ($asmId)";
     }
     printf "<tr><td style='text-align: right;'>%d</td>\n", ++$rowCount;
     #  common name and view in browser
     if ( $asmId =~ m/^GC/ ) {
        my $hubTxt = "${hubUrl}/hub.txt";
        my $igvUrl = "https://igv.org/app/?hubURL=$hubTxt";
        printf "<td><span style='float: left;'><a href='%s' target=_blank>%s</a></span><span style='float: right;'>[<a href='%s' target=_blank>IGV</a>]</span></td>\n", $browserUrl, $browserName, $igvUrl;
     } else {
        printf "<td style='text-align: center;'><a href='%s' target=_blank>%s</a></td>\n", $browserUrl, $browserName;
     }
     # scientific name and data download