This commit is contained in:
2026-06-12 02:58:53 +02:00
parent 34ed0e4621
commit 8b29ee6722

View File

@@ -3703,8 +3703,8 @@ window.cancelAnimFrame = (function () {
(parts.length >= 3 && parts[0] === 'h' && /^\d+$/.test(parts[parts.length - 1])) (parts.length >= 3 && parts[0] === 'h' && /^\d+$/.test(parts[parts.length - 1]))
); );
if (isItemLink) { if (isItemLink) {
// Links inside comment bodies should not inherit tag/hall context // Links inside comment bodies or MOTD should not inherit tag/hall/user context
const _inComment = anyLink.closest(".comment, .comment-content, .comment-body"); const _inComment = anyLink.closest(".comment, .comment-content, .comment-body, .motd-content");
loadItemAjax(targetUrl, !_inComment); loadItemAjax(targetUrl, !_inComment);
} else { } else {
loadPageAjax(targetUrl, true); loadPageAjax(targetUrl, true);