Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Header and footer implied variables differences between cloud and server

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.

1 answer

0 votes
Jack Brickey Community Leader Dec 24, 2021

@Mark Kobold , did you ever get this resolved? If not did you reach out to Atlassian Support?

Suggest an answer

Log in or Sign up to answer
Site Admin
Community showcase
Published in Confluence

An update on Confluence Cloud customer feedback – June 2022

Hi everyone, We’re always looking at how to improve Confluence and customer feedback plays an important role in making sure we're investing in the areas that will bring the most value to the most c...

153 views 1 3
Read article

Community Events

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

Events near you