b997597b9acbcea5754cd3808181ea88825ba28e
chmalee
  Thu Jan 9 15:55:20 2025 -0800
Fix hub_id_ strip function to correctly join back together the stuff after the first two underscores, refs #35406

diff --git src/hg/js/utils.js src/hg/js/utils.js
index 92f9928..3227988 100644
--- src/hg/js/utils.js
+++ src/hg/js/utils.js
@@ -1385,31 +1385,31 @@
     if (typeof uiState !== "undefined" && uiState.db)
         return uiState.db;
 
     db = document.getElementById("selectAssembly");
     if (db)
         return db.selectedOptions[0].value;
 
     return "";
 }
 
 function undecoratedTrack(track)
 // return the track name with any hub_id_ stripped
 {
 var retTrack = track;
 if (track.startsWith("hub_")) {
-    retTrack = track.split('_', 3)[2];
+    retTrack = track.split('_').slice(2).join("_");
 }
 return retTrack;
 }
 
 function getTrack()
 {
     var track = normed($("input#g").first());
     if (track)
         return track.value;
 
     track = normed($("input[name='g']").first());
     if (track)
         return track.value;
 
     track = getURLParam(window.location.href, "g");