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); } }