From d68f8c3bb35be03656326b2350ba2172963b324b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20R=C3=BCger?= Date: Thu, 12 Mar 2026 23:15:58 +0100 Subject: [PATCH] fix: use api.BaseURL instead of config.BaseURL for page URL output confluence.NewAPI trims trailing slashes from the base URL into api.BaseURL. Using config.BaseURL directly could produce double slashes in the logged/printed URL when the caller passes a trailing-slash BaseURL. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- mark.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mark.go b/mark.go index 3941e74..82a4f70 100644 --- a/mark.go +++ b/mark.go @@ -115,8 +115,8 @@ func Run(config Config) error { } if target != nil { - log.Infof(nil, "page successfully updated: %s", config.BaseURL+target.Links.Full) - if _, err := fmt.Fprintln(config.output(), config.BaseURL+target.Links.Full); err != nil { + log.Infof(nil, "page successfully updated: %s", api.BaseURL+target.Links.Full) + if _, err := fmt.Fprintln(config.output(), api.BaseURL+target.Links.Full); err != nil { return err } }