I have a custom PDF export; where link to a heading in another page does not navigate to the corresponding heading within the PDF, but rather takes to the online Confluence link.
TopicA
Text [link to TopicB/HeadingC]
TopicB
HeadingC
In this case, when custom export the space with just TopicA and TopicB, the link from `Text` to `HeadingC` under TopicB doesn't navigate within the PDF but goes to the online page and corresponding heading.