While migrating Confluence from server to cloud. The page tree macro was used in the Confluence global header and footer for all pages and spaces.
The wiki markup in the foooter was as follows:
Yields the following error message when the Confluence page is rendered
The root page <space-key>:@self could not be found in space <space-name>. Similar threads on this error message imply that this is because the home page for the space is not set. I have confirmed that it is and the issue still persists.
Also using the space specific footer versus the global/system one yields no effect. I have also tried in different Confluence Cloud instances to rule out any potential weirdness there.
If the same wiki markup text is put into the actual page in Confluence it works as expected. So the macro structure and configuration is believed to be correct and accurate.
From the looks of things this feels like a bug in Confluence that when the headers and footers are rendered for each page. They are done so in a different context than the page itself. Which would explain why the macro wouldn't necessarily resolve the @self parameter properly. Though it does seem to be aware of the space it is in.
Could someone confirm or deny this? Thanks in advance.
Hello Community! Quick disclaimer: We are running a contest on Community (The Atlympics!) from July 23rd - August 8th of 2021. If you are interested in participating in this contest (prizes! ...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events