Fix relative URLs when serving the specification with a custom baseURL
(#1984)
This commit is contained in:
parent
b1f66d1b71
commit
bf8dee74eb
61 changed files with 101 additions and 92 deletions
|
@ -335,7 +335,7 @@ resolve-additional-types.)
|
|||
{{ $stringFormat := "" }}
|
||||
|
||||
{{ with index site.Data "string-formats" . }}
|
||||
{{ $stringFormat = printf "<a href=\"%s\">%s</a>" (htmlEscape .url) (htmlEscape .title) }}
|
||||
{{ $stringFormat = printf "<a href=\"%s\">%s</a>" (htmlEscape .url | relURL) (htmlEscape .title) }}
|
||||
{{ end }}
|
||||
|
||||
{{ return $stringFormat }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue