From 6b87fc248585dd050637101116b19e424f3c210a Mon Sep 17 00:00:00 2001 From: Henrique Dias Date: Fri, 1 Jul 2016 15:51:59 +0100 Subject: [PATCH] add addr path --- setup.go | 1 + 1 file changed, 1 insertion(+) diff --git a/setup.go b/setup.go index 147fb362..2ab2cd68 100644 --- a/setup.go +++ b/setup.go @@ -97,6 +97,7 @@ func setup(c *caddy.Controller) error { Root: http.Dir(conf.Root), BaseURL: conf.BaseURL, AbsoluteURL: strings.Replace(cnf.Addr.Path+"/"+conf.BaseURL, "//", "/", -1), + AddrPath: strings.TrimSuffix(cnf.Addr.Path, "/"), StyleSheet: conf.Styles, }, },