diff --git a/Plan/common/src/main/resources/assets/plan/web/js/sb-admin-2.js b/Plan/common/src/main/resources/assets/plan/web/js/sb-admin-2.js index 8c5fa7f38..bd41c224a 100644 --- a/Plan/common/src/main/resources/assets/plan/web/js/sb-admin-2.js +++ b/Plan/common/src/main/resources/assets/plan/web/js/sb-admin-2.js @@ -52,8 +52,8 @@ for (let tab of tabs) { window.addEventListener('hashchange', openPage); //Sidebar navigation tabs -$('#accordionSidebar .nav-item a').click(event => { - if(history.replaceState) { +$('#accordionSidebar .nav-button, #accordionSidebar .nav-button a').click(event => { + if (history.replaceState) { event.preventDefault(); history.replaceState(undefined, undefined, '#' + event.currentTarget.href.split('#')[1]); openPage();