Streaming live at 10am (PST)

Custom Code that allowed link to open a specific tab pane stopped working

I had recently found some custom code that allowed for my links to open specific tabs on my homepage. Post: Link to Open Tab on Another Page

This was working perfectly, up until a week ago where suddenly the custom code was not correctly reading the URL in my links anymore. Now it only reads the portion that drags the screen down to the right section, but fails to open up the actual tab. I did not change anything with the link/tab setup for it to all of a sudden stop working, but perhaps I did unknowingly?

All the tabs and links are on my homepage, so not sure if there is also an easier way to have this action performed as well. (I have an interactive map that opens tabs, so when the image (link) is selected it is to open a tab pane belonging to that area of the map)

Custom Code found and being used:

var Webflow = Webflow || ;
Webflow.push(function () {
var tabName = getParam(‘tab’);
if (!tabName) return;

      $('.' + tabName).triggerHandler('click');

      function getParam(name) {
        name = name.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]");
        var regex = new RegExp("[\\?&]" + name + "=([^&#]*)"),
          results = regex.exec(location.search);
        return results == null ? "" : decodeURIComponent(results[1].replace(/\+/g, " "));
      }
    });
</script>

Thank you for any help that can be provided!