ff97a131bb3d4d6f2dae3d04c73afceab20233eb
hiram
  Wed Jul 29 16:12:23 2026 -0700
better url link to the archive track hub refs #37958

diff --git src/hg/utils/automation/AsmHub.pm src/hg/utils/automation/AsmHub.pm
index 8816f072b4f..e341976b49b 100755
--- src/hg/utils/automation/AsmHub.pm
+++ src/hg/utils/automation/AsmHub.pm
@@ -143,26 +143,27 @@
       opendir(my $dh, $archiveBase);
       if ($dh) {
         @versions = sort { $b cmp $a }
                     grep { -d "$archiveBase/$_" && $_ !~ m/^\./ } readdir($dh);
         closedir($dh);
       }
     }
     if (@versions) {
       my @parts = split('_', $ncbiAsmId);
       my $accession = "$parts[0]_$parts[1]";
       my $hashedPath = asmIdToPath($ncbiAsmId);
       $html .= "<h2>Archived versions</h2>\n<p>\n";
       $html .= "Earlier versions of this track, from before NCBI updated the source annotation, remain available as standalone track hubs:\n";
       $html .= "</p>\n<ul>\n";
       foreach my $version (@versions) {
-        my $url = "https://hgdownload.soe.ucsc.edu/hubs/$hashedPath/$accession/archive/ncbiGene/$version/hub.txt";
+        my $hubUrl = "https://hgdownload.soe.ucsc.edu/hubs/$hashedPath/$accession/archive/ncbiGene/$version/hub.txt";
+        my $url = "https://genome.ucsc.edu/h/$accession?hubUrl=$hubUrl";
         $html .= "<li><a href='$url' target='_blank'>$version</a></li>\n";
       }
       $html .= "</ul>\n\n";
     }
   }
 
   return $html;
 } # ncbiGeneDescription
 
 1;