Skip to main content
Known Participant
March 16, 2021
Question

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

  • March 16, 2021
  • 12 replies
  • 338 views

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 has been closed for replies.

    12 replies

    Peter Grainge
    Community Expert
    Community Expert
    April 7, 2021

    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

    Use the menu (bottom right) to mark the Best Answer or Highlight particularly useful replies. Found the answer elsewhere? Share it here.
    Known Participant
    April 7, 2021

    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.

    Known Participant
    March 19, 2021

    Amebr,

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

     

    Regards,

    Rannveig

    Community Expert
    March 18, 2021

    @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

    Known Participant
    March 18, 2021

    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.
    Adobe Employee
    March 17, 2021

    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

    Known Participant
    March 17, 2021

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

    Jeff_Coatsworth
    Community Expert
    Community Expert
    March 17, 2021

    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.

    Known Participant
    March 17, 2021

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

    Jeff_Coatsworth
    Community Expert
    Community Expert
    March 17, 2021

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