1f0b23fe45c8fd5c2a6e2416dbc864f8f6cbf9ab
gperez2
  Sun May 4 22:13:34 2025 -0700
Edits to hgGateway.c and hgGateway.js following Jairo's code review feedback, #35591

diff --git src/hg/js/hgGateway.js src/hg/js/hgGateway.js
index 8bb7730e444..4b1eb3c962a 100644
--- src/hg/js/hgGateway.js
+++ src/hg/js/hgGateway.js
@@ -1665,26 +1665,34 @@
             autocompleteCat.init($('#speciesSearch'),
                                  { baseUrl: 'hgGateway?hggw_term=',
                                    watermark: speciesWatermark,
                                    onSelect: setDbFromAutocomplete,
                                    onServerReply: processSpeciesResults,
                                    enterSelectsIdentical: false });
             $('#selectAssembly').on("change", onChangeDbMenu);
             $('#positionDisplay').on("click", onClickCopyPosition);
             $('#copyPosition').on("click", onClickCopyPosition);
             $('.jwGoButtonContainer').on("click", goToHgTracks);
             $(window).on("resize", setRightColumnWidth.bind(null, scrollbarWidth));
             displaySurvey();
             replaceHgsidInLinks();
             // Fill in searchObj here once everything is displayed.
             autocompleteFromTree(prunedDbDbTree, searchObj);
+
+	    // Gateway tutorial
+            if (typeof gatewayTour !== 'undefined') {
+                if (typeof startTutorialOnLoad !== 'undefined' && startTutorialOnLoad) {
+                    gatewayTour.start();
+                }
+            }
+
         });
     }
 
     return { init: init,
              // For use by speciesTree.draw SVG (text-only onclick):
              onClickSpeciesLabel: onClickSpeciesLabel,
              onClickHubName: onClickHubName
            };
 
 }()); // hgGateway