feat(artists): link live-search hits to the artist preview page

Each MB search result on /artists now links its name to
/discover/artist/[mbid] (the read-only disco + tracklist + own-state
preview), so you can preview before following there too — same wiring
the discovery feed already uses.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
Jonathan
2026-07-12 10:42:29 +02:00
parent 3f77bb1f4c
commit a07e791368
+1 -1
View File
@@ -77,7 +77,7 @@ export function ArtistsClient() {
<ul>
{hits.map((h) => (
<li key={h.mbid}>
{h.name}
<a href={`/discover/artist/${h.mbid}?name=${encodeURIComponent(h.name)}`}>{h.name}</a>
{h.disambiguation ? ` (${h.disambiguation})` : ""}{" "}
{followedMbids.has(h.mbid) ? (
<span> · following</span>