diff --git a/scripts/js/main.js b/scripts/js/main.js index 8d5b045..c0dd32e 100644 --- a/scripts/js/main.js +++ b/scripts/js/main.js @@ -78,7 +78,8 @@ document.addEventListener('keydown', (ev) => { searchBox.classList.contains('show') ? hideSearch() : showSearch(); } if (ev.key.toLocaleLowerCase() === 'enter') { - window.location.href = getDocUrl(activeMenu.path) + const url = activeMenu.path || activeMenu?.item.path; + window.location.href = getDocUrl(url); } if (ev.key.toLocaleLowerCase() === 'arrowdown') { activeAnchorElm('down')