I've got a page with several Expand macros on it.
Below these on the page (and not within the Expand macro) are sets of data that contain links to headings within the Expand macro. The headings have the Anchor macro.
If you click on the link that goes to one of the headings within the Expand macro, and it is NOT already expanded, then the link doesn't work.
If you expand the area you want to jump to first, then click on the link, you jump to the appropriate heading.
I hope that makes sense. 
Is this expected behaviour or a bug?
I'm running Confluence Server, 5.4.1.
Cheers.