From 1e9abb588c549ef766922a8f2c7f0b9e1061f7b9 Mon Sep 17 00:00:00 2001 From: Broque Thomas <26755000+Nezreka@users.noreply.github.com> Date: Thu, 26 Mar 2026 08:22:52 -0700 Subject: [PATCH] Add clickable artist name link in download modal hero subtitle The artist name in album download modals is now a clickable link that navigates to the Artists page with that artist's discography. Uses the correct source-specific artist ID from the album data. Works on enhanced search, artists page, and discover page modals. Excluded from playlist, wishlist, and default contexts where the subtitle isn't an artist name. --- webui/static/script.js | 27 +++++++++++++++++++++++---- webui/static/style.css | 12 ++++++++++++ 2 files changed, 35 insertions(+), 4 deletions(-) diff --git a/webui/static/script.js b/webui/static/script.js index dbe909ce..d1dc9288 100644 --- a/webui/static/script.js +++ b/webui/static/script.js @@ -8261,10 +8261,13 @@ function initializeSearchModeToggle() { // Format playlist name const playlistName = `[${album.artist}] ${albumData.name}`; - // Create minimal artist object for the modal + // Create artist object for the modal — extract ID from album data + const firstArtist = (albumData.artists || [])[0] || {}; const artistObject = { - id: null, // No artist ID from enhanced search - name: album.artist + id: firstArtist.id || album.id?.split?.('_')?.[0] || '', + name: firstArtist.name || album.artist, + image_url: firstArtist.image_url || firstArtist.images?.[0]?.url || '', + source: _activeSearchSource || '', }; // Prepare full album object for modal @@ -10710,7 +10713,7 @@ function generateDownloadModalHeroSection(context) {