diff --git a/js/events.js b/js/events.js index 5c77005..7fbbd92 100644 --- a/js/events.js +++ b/js/events.js @@ -1641,7 +1641,8 @@ export async function handleTrackAction( // Use stored href from card if available, otherwise construct URL const contextMenu = document.getElementById('context-menu'); const storedHref = contextMenu?._contextHref; - const url = getShareUrl(storedHref ? storedHref : `/${type}/${item.id || item.uuid}`); + const typeForUrl= type === 'user-playlist' ? 'userplaylist' : type; + const url = getShareUrl(storedHref ? storedHref : `/${typeForUrl}/${item.id || item.uuid}`); trackCopyLink(type, item.id || item.uuid); navigator.clipboard.writeText(url).then(() => {