In our company we access the same Confluence instance through different domains depending on the authentication scheme. However, mark hardcodes the entire URL (including the base-url) whenever a Confluence page from the same instance is referenced via relative paths, creating a hard reference to the base-url that was specified at the time mark was invoked.
This can be fixed by removing the hardcoded reference to base-url as Confluence supports relative links to refer to pages under the same Confluence instance.
This would also make the pages and links independent from the current base-url in general, allowing for more flexibility.
What did you expect to happen?
Links to Confluence pages within the same page should always work regardless of the Confluence's hostname/domain.
How can we reproduce the behavior you experienced?
Steps to reproduce the behavior:
Create a page referencing a relative file containing another page, e.g.:
<!-- Title: PageWithRef -->
See this [page](../path/to/other/page.md)
Create a DNS alias for your Confluence instance
Deploy the page above using the new alias as base-url
Observe how the references above points to the new base-url (DNS alias), even in the regular URL
Further Information (please complete the following information)
What happened?
In our company we access the same Confluence instance through different domains depending on the authentication scheme. However,
mark
hardcodes the entire URL (including thebase-url
) whenever a Confluence page from the same instance is referenced via relative paths, creating a hard reference to thebase-url
that was specified at the timemark
was invoked.This can be fixed by removing the hardcoded reference to
base-url
as Confluence supports relative links to refer to pages under the same Confluence instance.This would also make the pages and links independent from the current
base-url
in general, allowing for more flexibility.What did you expect to happen?
Links to Confluence pages within the same page should always work regardless of the Confluence's hostname/domain.
How can we reproduce the behavior you experienced?
Steps to reproduce the behavior:
Create a page referencing a relative file containing another page, e.g.:
base-url
base-url
(DNS alias), even in the regular URLFurther Information (please complete the following information)
mark --version
): 9.12.0