49a02af9f3ec0cfff74d0dd93da2722a030e4147
chmalee
  Fri Oct 10 10:24:15 2025 -0700
Fix hgHubConnect tab anchor link detection so urls with the anchor will actually switch to that tab, refs Lou email

diff --git src/hg/js/hgHubConnect.js src/hg/js/hgHubConnect.js
index 9b1e52b88c3..67d0182602f 100644
--- src/hg/js/hgHubConnect.js
+++ src/hg/js/hgHubConnect.js
@@ -65,35 +65,35 @@
     });
 });
 
 
 // initializes the tabs - with cookie option
 // cookie option requires jquery.cookie.js
 $(function() {
   $("#tabs").tabs({
       active: localStorage.getItem("hubTab") !== null ? localStorage.getItem("hubTab") : 0,
       activate: function(event, ui) {
           localStorage.setItem("hubTab", ui.newTab.index());
       },
   });
   // activate tabs if the current URL ends with the appropriate tab name
   var tabName = window.location.hash;
-  if (tabName==="publicHubs")
+  if (tabName==="#publicHubs")
       $("#tabs").tabs("option", "active", 0);
-  if (tabName==="#conn" || tabName === "unlistedHubs")
+  if (tabName==="#conn" || tabName === "#unlistedHubs")
       $("#tabs").tabs("option", "active", 1);
-  if (tabName==="#dev" || tabName === "hubDeveloper")
+  if (tabName==="#dev" || tabName === "#hubDeveloper")
       $("#tabs").tabs("option", "active", 2);
   if (tabName==="#hubUpload")
       $("#tabs").tabs("option", "active", 3);
 
   $("#tabs").tabs().on("tabsactivate", function(event, ui) {
     const  newHash = ui.newTab.find("a").attr("href");
     if (newHash) {
       history.replaceState(null, null, newHash);
     }
     if (newHash === "#hubUpload") {
         hubCreate.init();
     }
   });
 });