Skip to main content
Known Participant
Mar 16, 2021 10:35 AM UTC
Question

RH: 2020 Call from application using window.location.replace() from redirect topic stopped working

We have a quite large structure of merged CHMs for our applications where we locate the corresponding chm using a call from the application with this call:

 

System.Windows.Forms.Help.ShowHelp(
this, path, HelpNavigator.Topic,
"redirect.htm#help_file.chm::/" + page);
 
The redirect.htm topic contains the following script code:
window.location.replace(window.location.hash.substring(1));
 
This has been working fine from 2013 and until now, when I upgraded the master project to RH 2020.
 
Is there anything that could have made this mechanism to break with this upgrade?
 
BR,
Rannveig
    This topic is closed to new replies. Start a new post to keep the conversation going.

    12 replies

    Peter Grainge
    Community Expert
    Community Expert
    Apr 7, 2021 10:34 AM UTC

    The simplest of things and it makes you want to tear your hair out. Yes now if a topic is needed in the build, it must be in the TOC.

     

    Glad you have got it sorted.

    ________________________________________________________
    See www.grainge.org for free Authoring and RoboHelp Information

    Translate
    Use the menu (bottom right) to mark the Best Answer or Highlight particularly useful replies. Found the answer elsewhere? Share it here.
    Known Participant
    Apr 7, 2021 10:27 AM UTC

    This issue has been solved by the help of Adobe Support. Due to changes in RH from the previous version used to create the master project, the redirect.htm file needed to be included in the TOC to be present in the compiled help file. After adding the topic to the TOC (with the option "Hide in output" selected), the mechanism worked as expected.

    Translate
    Known Participant
    Mar 19, 2021 6:17 AM UTC

    Amebr,

    Yes, that's exactly how the mechanism is on the code side.

     

    Regards,

    Rannveig

    Translate
    Community Expert
    Mar 18, 2021 11:49 PM UTC

    @MayankGupta They may be using Solution #2 on this page, I think. The information might help you with ideas.

    http://kb.helpwaregroup.com/ms-html-help/merge/ctx2

    Translate
    Known Participant
    Mar 18, 2021 2:54 PM UTC

    Mayank,

     

    I don't have HTML Help Studio installed, and I have tried to find a place where I could download it, but I haven't been able to find it anywhere. Would you be able to provide a link, if it is available?

     

    I have talked to the developer to verify what we submit in the ShowHelp call, and these are our findings:

    The call contains the following value: 

    redirect.htm#weatheradmin.chm::/Start_page.htm
     
    The error message contains the following information:
    res://ieframe.dll/dnserrordiagoff.htm#mk:@MSITStore:D:\projects\ICCMDMS\iccruntime\bin\Win32\gui\norsk\powertrade.chm::/redirect.htm#weatheradmin.chm::/Start_page.htm
     
    When we locate the topic in the structure and show Properties, we see the following URL:
    mk:@MSITStore:D:\projects\ICCMDMS\iccruntime\bin\Win32\gui\norsk\weatheradmin.chm::/Start_page.htm
     
    So the topic is available in the CHM that we try to call.
     
    We also tried the call without the "page" variable, just opening the CHM with the default topic, but as we see it, the problem is that the redirect mechanism does not work, either because the JavaScript code in the redirect.htm topic is ingored, or for some other reason.
    Translate
    Adobe Employee
    Mar 17, 2021 8:12 PM UTC

    Hi,

    It is hard to investigate properly with the information that you provided. Possible reason that I could think at the top of my head is the value of the variable "page" and that present in the CHM is not matching. You could check this by opening your CHM file in HTML Help Studio and checking the topic name in the left panel and checking if the value of "page" variable matches any one of those.

    If this doesn't help, could you send the generated chm file along with the values of "page" variable mention in your code snippet 

    System.Windows.Forms.Help.ShowHelp(
    this, path, HelpNavigator.Topic,
    "redirect.htm#help_file.chm::/" + page);

    That should make it easier to debug it.

    Regards, 

    Mayank Gupta

    Translate
    Known Participant
    Mar 17, 2021 2:17 PM UTC

    I have done so, and added a bug report to the RH team.

    Translate
    Jeff_Coatsworth
    Community Expert
    Community Expert
    Mar 17, 2021 12:19 PM UTC

    Yup - in that case I think you should chat with the RH folks - see https://helpx.adobe.com/contact/enterprise-support.other.html#robohelp for your support contact options.

    Translate
    Known Participant
    Mar 17, 2021 12:16 PM UTC

    Jeff, my version is RH 2020.3.32, which seems to be the most recent.

    Translate
    Jeff_Coatsworth
    Community Expert
    Community Expert
    Mar 17, 2021 12:14 PM UTC

    What's your point version of RH2020? One of the patches may have fixed your issue since RH2020's initial release.

    Translate