From 9ad4dab471228b2fc4fc59673b5ff53ec18287d5 Mon Sep 17 00:00:00 2001 From: simoleo89 <11816867+simoleo89@users.noreply.github.com> Date: Wed, 17 Jun 2026 21:57:13 +0200 Subject: [PATCH] fix(youtube): interpolate videoId in the share-to-X tweet text The share button built the tweet text from a single-quoted string containing ${videoId}, so it shared the literal 'watch?v=${videoId}' instead of the actual video URL. Use a template literal so videoId interpolates. --- src/components/toolbar/YouTubePlayerView.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/toolbar/YouTubePlayerView.tsx b/src/components/toolbar/YouTubePlayerView.tsx index c4c5849..4f5cd86 100644 --- a/src/components/toolbar/YouTubePlayerView.tsx +++ b/src/components/toolbar/YouTubePlayerView.tsx @@ -637,7 +637,7 @@ export const YouTubePlayerView: FC<{}> = () => if (videoId) { const url = `https://twitter.com/intent/tweet?text=${encodeURIComponent( - 'Now watching: https://youtube.com/watch?v=${videoId}', + `Now watching: https://youtube.com/watch?v=${videoId}`, )}`; window.open(url, '_blank'); }