Page 1 of 1

Webhelp responsive - Topic generated twice, but only one link for it

Posted: Tue Aug 18, 2020 9:39 am
by revaljilji
Hi,

I noticed that when I try to reference the same dita file two times in two different ditamaps, only one link would be created for it. Lets say I have X.ditamap and Y.ditamap. Both of them have referenced Z.dita.
Normally both ditamaps would show up in TOC Menu and when you expand them there will be Z.dita there. However if you click on Z.dita from Y.ditamap, webhelp-responsive will automatically open the Z.dita from X.ditamap.

Do you know what could be causing this?

Best regards,
R

Re: Webhelp responsive - Topic generated twice, but only one link for it

Posted: Wed Aug 19, 2020 11:32 am
by alin
Hello,

I have tried the scenario you have described using Oxygen WebHelp 22.1 but I couldn't reproduce the problem.
Here are the resources I have used:
  • main.ditamap:

    Code: Select all

    <map>
        <title>main</title>
        <topichead navtitle="x">
            <topicref href="x.ditamap" format="ditamap"/>
        </topichead>
        <topichead navtitle="y">
            <topicref href="y.ditamap" format="ditamap"/>
        </topichead>
    </map>
    
  • x.ditamap:

    Code: Select all

    <map>
        <title>x</title>
        <topicref href="z.dita"/>
    </map>
    
  • y.ditamap:

    Code: Select all

    <map>
        <title>y</title>
        <topicref href="z.dita"/>
    </map>
    

I have obtained the following results:
  • When I click on the z link under the x section the z.html file is opened:
    Image
  • When I click on the z link under the y section the z_2.html file is opened
    Image
Please note that the paths displayed in the breadcrumb of each topic page reveals the hierarchy of each z.dita topic reference.

Please ensure that the force.unique transformation parameter is set to true in order to have different html pages generated for each of the duplicated topic references (e.g.: z.html, z_2.html).

Regards,
Alin

Re: Webhelp responsive - Topic generated twice, but only one link for it

Posted: Wed Aug 19, 2020 12:08 pm
by revaljilji
Hi Alin,

unfortunatelly force.unique parameter didn´t solve the issue. I´d like to send you a bigger example via email if thats possible, so you could test it on your transformation.

Best regards,
R