Skip to content

Commit e3950c5

Browse files
Bugfix: Only link to reflections if they have an url
1 parent 6598d04 commit e3950c5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

bin/typedoc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5598,7 +5598,7 @@ var td;
55985598
else if (_this.project) {
55995599
reflection = _this.project.findReflectionByName(name);
56005600
}
5601-
if (reflection) {
5601+
if (reflection && reflection.url) {
56025602
return td.Util.format('<a href="%s">%s</a>', _this.getRelativeUrl(reflection.url), name);
56035603
}
56045604
else {

src/td/output/plugins/MarkedPlugin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ module td
205205
reflection = this.project.findReflectionByName(name);
206206
}
207207

208-
if (reflection) {
208+
if (reflection && reflection.url) {
209209
return Util.format('<a href="%s">%s</a>', this.getRelativeUrl(reflection.url), name);
210210
} else {
211211
return match;

0 commit comments

Comments
 (0)