From 734685b734db11f2436b309e8e0339ace7975d04 Mon Sep 17 00:00:00 2001 From: Kibi Kelburton Date: Sun, 17 May 2026 09:11:32 +0200 Subject: [PATCH] video link takes one straight to the comment and not the direct url --- public/s/js/sidebar-activity.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/public/s/js/sidebar-activity.js b/public/s/js/sidebar-activity.js index af0dfe3..0ab93bd 100644 --- a/public/s/js/sidebar-activity.js +++ b/public/s/js/sidebar-activity.js @@ -314,7 +314,9 @@ isSameSite = url.startsWith(siteOrigin) || (url.startsWith('/') && !url.startsWith('//')); } const label = isSameSite ? 'Video Link' : 'External Video Link'; - return ` ${label} »`; + const targetHref = (itemId && commentId) ? `/${itemId}#c${commentId}` : (commentId ? `#sc${commentId}` : url); + const externalAttr = (itemId && commentId) || commentId ? '' : ' target="_blank" rel="noopener noreferrer"'; + return ` ${label} »`; }); // Handle spoilers [spoiler]text[/spoiler] (supports nesting)