Links & tinylinks for Space homepage & child pages doesn't resolve to its title inside static macros

My team & I noticed that links or tinylinks for any Space homepage & tinylinks for any Confluence child page doesn’t render to its title inside our static macros.

Here’s a screenshot of what I mean when compared to the Expand macro and outside of any macros.

We checked the storage format of the Expand macro and our static macro and found out that they’re exactly the same except for macro params, title and one macro attribute data-layout="default" (which Expand macro doesn’t have)

Storage format for show-if macro

<ac:structured-macro ac:name="show-if" ac:schema-version="1" **data-layout="default"** ac:macro-id="xyz">
<ac:parameter ac:name="users"><ri:user ri:userkey="123" /></ac:parameter>
<ac:rich-text-body>
<p><ac:link ac:card-appearance="inline"><ri:space ri:space-key="SCAF" /><ac:link-body>https://ucchishta6.atlassian.net/wiki/spaces/SCAF</ac:link-body></ac:link> - space home link<br />
<a href="https://ucchishta6.atlassian.net/wiki/x/d4EB" data-card-appearance="inline">https://ucchishta6.atlassian.net/wiki/x/d4EB</a>  - tiny link<br />
<ac:link><ri:user ri:userkey="123" /></ac:link>  - user link</p></ac:rich-text-body>
</ac:structured-macro>

Storage format for Expand macro

<ac:structured-macro ac:name="expand" ac:schema-version="1" ac:macro-id="xyz"><ac:parameter ac:name="title">Expand macro</ac:parameter>
<ac:rich-text-body>
<p><ac:link ac:card-appearance="inline"><ri:space ri:space-key="SCAF" /><ac:link-body>https://ucchishta6.atlassian.net/wiki/spaces/SCAF</ac:link-body></ac:link> - space home link<br />
<a href="https://ucchishta6.atlassian.net/wiki/x/d4EB" data-card-appearance="inline">https://ucchishta6.atlassian.net/wiki/x/d4EB</a>  - tiny link<br />
<ac:link><ri:user ri:userkey="123" /></ac:link>  - user link</p></ac:rich-text-body>
</ac:structured-macro>

I’m wondering if that attribute is what causing the links & tinylink to not render properly.
I thought I could remove it to try but it’s not in the response of GET wiki/rest/api/content/{id}/history/{version}/macro/id/{macroId}.

Anyone facing this similar issue?

I’ve also created a dev support ticket here but no response since last week.

Hope everyone is safe!

Thanks.

7 Likes