Confluence: Page search doesn't work with the Expand Macro or Code Block when collapsed


One of my coworkers was looking for information he knew was on a specific page. He used Ctrl+F to look for the info on the page. But no result came back.

He discovered that the info - which is in an Expand macro - was only found using Ctrl+F when the Expand macro is expanded. When it is collapsed, the info doesn't display.

He then found out that the same issue happens when he looks for code that's in a collapsed Code Block macro. We use collapsed Code Blocks for very long code. So we frequently use it but not always.

I also did a test where I looked for information that I know is in a collapsed expand. The Space search displayed the results. But when I went to the page to do a Page Search, the result came up nil.

Does anyone know how to get around this issue? Or how to fix the issue?



3 answers

1 vote
Boris Berenberg Community Champion Apr 17, 2015

I filled an improvement request for this at: as I could not find any existing ones.

Hi Rosemary, in the meanwhile this feature gets digested by our tracker, you may use a CSS syntax to conceal keywords that will take you to that page section along the HTML Macro

Hi everyone!

This issue is still open?

We have the same problem.


CSS and HTML macro is not a solution. sad


Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Feb 06, 2019 in Confluence

Try out the new editing experience

Hi team, I’m Avinoam, a product manager on Confluence Cloud, and today I’m really excited to let the Community know that all customers can now try out the new editing experience and see some of the ...

920 views 47 7
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you