I'm trying to use the confluence-content parameter to generate a link in a macro, but I'm running into a few issues. The main problem is that if the macro is referencing a page in the same space, the space key isn't returned by Confluence. This makes it extremely difficult to make an absolute url from the page name. Am I missing something obvious? I've found several questions related to this issue and most of them utilise a pagemanager javascript object quite cleverly but none of them seem to address the issue of a missing space key.
Thank you.