From 052dae6bd5dd719380fba33d15837dc4542201a1 Mon Sep 17 00:00:00 2001 From: Florian Dieminger Date: Tue, 19 Nov 2024 13:09:16 +0100 Subject: [PATCH] fix(flaws): re-add href to broken links as data (#12131) --- build/flaws/broken-links.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/build/flaws/broken-links.ts b/build/flaws/broken-links.ts index 487415c354b7..b08fc6aeaffd 100644 --- a/build/flaws/broken-links.ts +++ b/build/flaws/broken-links.ts @@ -71,7 +71,9 @@ function mutateLink( "summary" ); $element.attr("title", titleWhenMissing); + const href = $element.attr("href"); $element.attr("href", null); + $element.attr("data-href", href); } }