Skip to content

Commit e59cb4a

Browse files
committed
Fix build
1 parent 2c46280 commit e59cb4a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

modules/markdown/markdown.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,14 +161,14 @@ func (r *Renderer) AutoLink(out *bytes.Buffer, link []byte, kind int) {
161161
}
162162

163163
issue := string(m[i+7 : j])
164-
fullRepoUrl := setting.AppUrl + strings.TrimPrefix(r.urlPrefix, "/")
164+
fullRepoUrl := setting.AppURL + strings.TrimPrefix(r.urlPrefix, "/")
165165
var link string
166166
if strings.HasPrefix(string(m), fullRepoUrl) {
167167
// Use a short issue reference if the URL refers to this repository
168168
link = fmt.Sprintf(`<a href="%s">#%s</a>`, m, issue)
169169
} else {
170170
// Use a cross-repository issue reference if the URL refers to a different repository
171-
repo := string(m[len(setting.AppUrl) : i-1])
171+
repo := string(m[len(setting.AppURL) : i-1])
172172
link = fmt.Sprintf(`<a href="%s">%s#%s</a>`, m, repo, issue)
173173
}
174174
out.WriteString(link)
@@ -289,7 +289,7 @@ func RenderCrossReferenceIssueIndexPattern(rawBytes []byte, urlPrefix string, me
289289
repo := string(bytes.Split(m, []byte("#"))[0])
290290
issue := string(bytes.Split(m, []byte("#"))[1])
291291

292-
link := fmt.Sprintf(`<a href="%s%s/issues/%s">%s</a>`, setting.AppUrl, repo, issue, m)
292+
link := fmt.Sprintf(`<a href="%s%s/issues/%s">%s</a>`, setting.AppURL, repo, issue, m)
293293
rawBytes = bytes.Replace(rawBytes, m, []byte(link), 1)
294294
}
295295
return rawBytes

0 commit comments

Comments
 (0)