From ecd563e0957c23573bc8b37ba398396b8144c0d0 Mon Sep 17 00:00:00 2001 From: Angel Montana <32843378+monti-python@users.noreply.github.com> Date: Fri, 14 Jun 2024 13:50:18 +0000 Subject: [PATCH] Make references to pages within the same Confluence relative --- pkg/mark/link.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/mark/link.go b/pkg/mark/link.go index c107c64c..0c162eef 100644 --- a/pkg/mark/link.go +++ b/pkg/mark/link.go @@ -203,9 +203,9 @@ func getConfluenceLink( } if page != nil { - // Needs baseURL, as REST api response URL doesn't contain subpath ir - // confluence is server from that - link = api.BaseURL + page.Links.Full + // Confluence supports relative links to reference other pages: + // https://confluence.atlassian.com/doc/links-776656293.html + link = page.Links.Full } return link, nil