text: $(function (){
      $('.sidebar-menu a').each(function () {
          let location = window.location.protocol + '//' + window.location.host + window.location.pathname;
          let link = this.href;
          if (link == location) {
              $('.sidebar-menu li').removeClass('active');
              $(this).parent().addClass('active');
              $(this).closest('.treeview').addClass('active');
          }
      });
  });