If you insert a relative link, then it should remain relative. This means that, if you copy the source of the page from one space to another, then the relative links should point to pages in the new space, not to pages in the original space.
I have just tested the scenario described by a customer in a support case:
- In the DOC space on CAC, I created a page called "Sarah test 1". I added three links that should be relative. All of them point to a page called "Supported Platforms". To create the links, I added one via the links autocomplete, one via the Search tab in the links browser, and one via the Advanced tab in the links browser.
- Both the DOC space and the JIRA space already have a page with the same name, "Supported Platforms".
- In the JIRA space on CAC, I created another page called "Sarah test 1", and copied the content from the above page. To copy it, I opened the above page in the editor, selected all the content, pressed Ctrl+C, then pasted the content into my new page.
- Problem: The links are not relative in the new page. They still point to the DOC space, whereas they should point to the identically-named page in the JIRA space.
See screenshots attached.