We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b3ab9a6 commit 701eb19Copy full SHA for 701eb19
golink.go
@@ -299,7 +299,13 @@ func init() {
299
}
300
301
var tmplFuncs = template.FuncMap{
302
+ // go is a template function that returns the hostname of the golink service.
303
+ // This is used throughout the UI to render links, but does not impact link resolution.
304
"go": func() string {
305
+ if devMode() {
306
+ // in dev mode, just use "go" instead of "localhost:8080"
307
+ return defaultHostname
308
+ }
309
return *hostname
310
},
311
0 commit comments