Chunked topics display in the side TOC when they should be hidden
Posted: Thu Sep 23, 2021 7:53 pm
We've encountered a scenario where chunked topics display in the side TOC when they should be hidden (i.e., because webhelp.publication.toc.hide.chunked.topics is set to the default value of 'yes'). We're using the 2021061407 build of oXygen 23.1 and this issue appears in the webhelp responsive output.
Here is a sample test map that shows the issue:
<map id="test" class="- map/map ">
<topichead navtitle="Test tile">
<topichead navtitle="Test topichead 1">
<topicref href="test/parent_topic_1.dita" chunk="to-content">
<topicref href="test/chunked_topic_1.dita"/>
</topicref>
</topichead>
<topichead navtitle="Test topichead 2">
<topicref href="test/parent_topic_2.dita" chunk="to-content">
<topicref href="test/chunked_topic_2.dita"/>
</topicref>
</topichead>
</topichead>
</map>
For example, when you're viewing parent_topic_1, the chunked topic associated with parent_topic_2 displays in the side TOC, as shown below:
However, when you click on the link for parent_topic_2, the chunked topic for that topic no longer displays in the side TOC but the chunked topic for parent_topic_1 now displays in the side TOC.
We've noticed that the issue seems to be dependent on the presence of the <topichead> elements.
Thanks for any insights into this issue.
Here is a sample test map that shows the issue:
<map id="test" class="- map/map ">
<topichead navtitle="Test tile">
<topichead navtitle="Test topichead 1">
<topicref href="test/parent_topic_1.dita" chunk="to-content">
<topicref href="test/chunked_topic_1.dita"/>
</topicref>
</topichead>
<topichead navtitle="Test topichead 2">
<topicref href="test/parent_topic_2.dita" chunk="to-content">
<topicref href="test/chunked_topic_2.dita"/>
</topicref>
</topichead>
</topichead>
</map>
For example, when you're viewing parent_topic_1, the chunked topic associated with parent_topic_2 displays in the side TOC, as shown below:
However, when you click on the link for parent_topic_2, the chunked topic for that topic no longer displays in the side TOC but the chunked topic for parent_topic_1 now displays in the side TOC.
We've noticed that the issue seems to be dependent on the presence of the <topichead> elements.
Thanks for any insights into this issue.