From 13143c756c3b8f4d77643b5c4be5bba56931c676 Mon Sep 17 00:00:00 2001 From: Finn Date: Tue, 2 Feb 2021 15:41:10 -0800 Subject: [PATCH] URL problems were coming from the cobra generator --- cmd/signaldctl/cmd/doc.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/signaldctl/cmd/doc.go b/cmd/signaldctl/cmd/doc.go index 33b00af..5503056 100644 --- a/cmd/signaldctl/cmd/doc.go +++ b/cmd/signaldctl/cmd/doc.go @@ -57,11 +57,11 @@ func filePrepender(filename string) string { now := time.Now().Format(time.RFC3339) name := filepath.Base(filename) base := strings.TrimSuffix(name, path.Ext(name)) - url := "/signaldctl/" + strings.ToLower(base) + url := strings.ToLower(base) return fmt.Sprintf(fmTemplate, now, strings.Replace(base, "_", " ", -1), base, url) } func linkHandler(name string) string { base := strings.TrimSuffix(name, path.Ext(name)) - return "/signaldctl/" + strings.ToLower(base) + return "/signald-go/" + strings.ToLower(base) }