mirror of
https://github.com/kovetskiy/mark.git
synced 2025-04-24 05:42:40 +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 {
|
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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user