Skip to content

Commit

Permalink
Make references to pages within the same Confluence relative
Browse files Browse the repository at this point in the history
  • Loading branch information
monti-python authored and mrueg committed Jul 2, 2024
1 parent 44649c6 commit ecd563e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/mark/link.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ecd563e

Please sign in to comment.