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 {
// 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