94d7a6f6d8884db6fee1e7d9b95d9c2b409cb0ef
chmalee
  Fri Jul 17 14:10:26 2026 -0700
hubSpace: add Copy link to hub button to the hub-browsing banner, refs #37705

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

diff --git src/hg/htdocs/inc/hgMyData.html src/hg/htdocs/inc/hgMyData.html
index 063819eeb65..2e9f810ec44 100755
--- src/hg/htdocs/inc/hgMyData.html
+++ src/hg/htdocs/inc/hgMyData.html
@@ -58,30 +58,31 @@
             <p style="flex: 1;">
             By default, your most recently used genome assembly is selected after choosing which
             files to upload. Use the <em>popular assemblies</em> drop-down menu or the search
             box to select another genome assembly.
             </p>
             <img src="../images/HubSpaceUpload.png"
             alt="Example of the upload dialog box for Hub Space" width="35%">
           </div>
         </details>
     </div>
 
 
     <div id='filesDiv' class='tabSection'>
         <div id="hubBanner" style="display:none; margin: 8px 0; padding: 8px 12px; background-color:#e7f0ff; border:1px solid #b8cdf0; border-radius:4px;">
             <button id="hubBannerViewBtn" type="button" class="button" style="margin-right:12px; vertical-align:middle;">View hub in Genome Browser</button>
+            <button id="hubBannerCopyBtn" type="button" class="button" style="margin-right:12px; vertical-align:middle;">Copy link to hub</button>
             <span style="vertical-align:middle;">You are browsing hub <strong id="hubBannerName"></strong>. Clicking "View in Genome Browser" on any track below will connect this entire hub.</span>
         </div>
         <div id="selectedFileBanner" style="display:none; margin: 8px 0; padding: 8px 12px; background-color:#e7f0ff; border:1px solid #b8cdf0; border-radius:4px;">
             <span style="vertical-align:middle;"><strong id="numberSelectedFilesBanner"></strong> selected.</span>
             <button id="viewSelectedFilesBanner" type="button" class="button" style="margin-left:12px; vertical-align:middle;"></button>
             <button id="deleteSelectedFilesBanner" type="button" class="button" style="margin-left:8px; vertical-align:middle;"></button>
             <button id="copyHubLinkBanner" type="button" class="button" style="display:none; margin-left:8px; vertical-align:middle;"></button>
             <div style="margin-top:8px;">Clicking "View selected" only connects the selected hubs; it does not change any of your other Genome Browser settings. To share a link that also opens a specific position with your hub and other tracks already set up, save a <a href="../cgi-bin/hgSession?hgS_doMainPage=1" style="color:#121E9A">session</a> and share its link instead.</div>
         </div>
         <table id="filesTable" class="sessionTable stripe hover row-border compact" borderwidth=0>
         </table>
         <div id='selectedFileInfo' class="tabSection" style="margin-bottom: 20px;">
             <div id='placeHolderInfo'>Select files for more options</div>
             <div style="display: none">
                 <span id='numberSelectedFiles'></span> selected.