Make references to pages within the same Confluence relative

This commit is contained in:
Angel Montana 2024-06-14 13:50:18 +00:00 committed by Manuel Rüger
parent 44649c682b
commit ecd563e095

View File

@ -203,9 +203,9 @@ func getConfluenceLink(
} }
if page != nil { if page != nil {
// Needs baseURL, as REST api response URL doesn't contain subpath ir // Confluence supports relative links to reference other pages:
// confluence is server from that // https://confluence.atlassian.com/doc/links-776656293.html
link = api.BaseURL + page.Links.Full link = page.Links.Full
} }
return link, nil return link, nil