mirror of
https://github.com/kovetskiy/mark.git
synced 2025-04-23 21:32:41 +08:00
Make references to pages within the same Confluence relative
This commit is contained in:
parent
44649c682b
commit
ecd563e095
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user