From 65d0eadb71def462f2d55bcb8803cdfc1cb068a2 Mon Sep 17 00:00:00 2001 From: Mrigakshi Roy Choudhury Date: Sat, 28 Mar 2026 00:13:36 +0530 Subject: [PATCH] fix(library): share playlist with the correct url --- js/events.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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(() => {