MCPcopy Index your code
hub / github.com/TruthHun/BookStack / BaseUrl

Method BaseUrl

controllers/BaseController.go:268–277  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

266}
267
268func (this *BaseController) BaseUrl() string {
269 host := beego.AppConfig.String("sitemap_host")
270 if len(host) > 0 {
271 if strings.HasPrefix(host, "http://") || strings.HasPrefix(host, "https://") {
272 return host
273 }
274 return this.Ctx.Input.Scheme() + "://" + host
275 }
276 return this.Ctx.Input.Scheme() + "://" + this.Ctx.Request.Host
277}
278
279// 显示错误信息页面.
280func (this *BaseController) ShowErrorPage(errCode int, errMsg string) {

Callers 11

PrepareMethod · 0.95
QrCodeMethod · 0.80
RecursiveFunFunction · 0.80
FindPasswordMethod · 0.80
ValidEmailMethod · 0.80
SettingMethod · 0.80
CreateTokenMethod · 0.80
ReleaseMethod · 0.80
EditBookMethod · 0.80
CreateTokenMethod · 0.80
AttachDetailedMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected