diff --git a/webui/static/script.js b/webui/static/script.js index 3de8162..71c041c 100644 --- a/webui/static/script.js +++ b/webui/static/script.js @@ -380,7 +380,10 @@ function navigateToPage(pageId) { document.querySelectorAll('.nav-button').forEach(btn => { btn.classList.remove('active'); }); - const navButton = document.querySelector(`[data-page="${pageId}"]`); + + // Handle artist-detail page specially - it should highlight the 'library' nav button + const navPageId = pageId === 'artist-detail' ? 'library' : pageId; + const navButton = document.querySelector(`[data-page="${navPageId}"]`); if (navButton) { navButton.classList.add('active'); }