Skip to content

Commit b47a0c2

Browse files
authored
Fix referrable information on broken link messages. (#3854)
This fixes #3604
1 parent 66366cd commit b47a0c2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/src/model/package_graph.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -605,6 +605,9 @@ class PackageGraph with CommentReferable, Nameable {
605605
if (href == null) continue;
606606

607607
hrefMap.putIfAbsent(href, () => {}).add(modelElement);
608+
hrefMap
609+
.putIfAbsent(href.replaceAll(htmlBasePlaceholder, ''), () => {})
610+
.add(modelElement);
608611
}
609612

610613
for (final library in _allLibraries.values) {

0 commit comments

Comments
 (0)