Need help to expand collapsed component when used from URL

I have a help page, say index.html, and using the collapse component for each topic with an id tag and by default "Show Content" is off. If a url like index.html#backup is used I would like the page to show at that id (that's normal) but expand the content, which it is not doing at the moment. Can anyone assist with this?