@@ -161,14 +161,14 @@ func (r *Renderer) AutoLink(out *bytes.Buffer, link []byte, kind int) {
161
161
}
162
162
163
163
issue := string (m [i + 7 : j ])
164
- fullRepoUrl := setting .AppUrl + strings .TrimPrefix (r .urlPrefix , "/" )
164
+ fullRepoUrl := setting .AppURL + strings .TrimPrefix (r .urlPrefix , "/" )
165
165
var link string
166
166
if strings .HasPrefix (string (m ), fullRepoUrl ) {
167
167
// Use a short issue reference if the URL refers to this repository
168
168
link = fmt .Sprintf (`<a href="%s">#%s</a>` , m , issue )
169
169
} else {
170
170
// 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 ])
172
172
link = fmt .Sprintf (`<a href="%s">%s#%s</a>` , m , repo , issue )
173
173
}
174
174
out .WriteString (link )
@@ -289,7 +289,7 @@ func RenderCrossReferenceIssueIndexPattern(rawBytes []byte, urlPrefix string, me
289
289
repo := string (bytes .Split (m , []byte ("#" ))[0 ])
290
290
issue := string (bytes .Split (m , []byte ("#" ))[1 ])
291
291
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 )
293
293
rawBytes = bytes .Replace (rawBytes , m , []byte (link ), 1 )
294
294
}
295
295
return rawBytes
0 commit comments