indow.location.pathname;
        if(pathname.includes("workflows")){
            if(pathname.endsWith("workflows/")) 
                pathname = pathname.substring(0, pathname.length-1);
            else
                pathname = "/workflows"
        }
        var exactMatch = $('#nav > ul > li > a[href="' + pathname + '"]'); 
        if (exactMatch.length) { 
            exactMatch.parents('li').addClass('active2'); 
        }
    </script>
