• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers

Table of Contents links not working correctly

New Here ,
Oct 24, 2022 Oct 24, 2022

Copy link to clipboard

Copied

I'm using RoboHelp 2020 and some of the links in the TOC are doing strange things.  For example, I'm viewing Page A and select Page B in the TOC.  Page B correctly displays, but the TOC jumps to Page C, which is in a different section, and the breadcrumbs also show the path to Page C.  It's like something has gotten crosswired, but I haven't been able to figure out where the problem lies.  Any suggestions?

TOPICS
New UI

Views

92

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Oct 24, 2022 Oct 24, 2022

Copy link to clipboard

Copied

i hit that issue if I only upload a portion of a new build to a server.  Adobe assigns each section and topic with ids in the toc when it builds.  If you create a new build but only upload a couple of topics, it will do that.

 

I found that if i only want to push a single topic, i upload the project data folder (called whxdata in my builds) and the entire folder for the section where i am updating a single topic. 

 

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 24, 2022 Oct 24, 2022

Copy link to clipboard

Copied

This is happening even after I publish the entire project.

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Oct 24, 2022 Oct 24, 2022

Copy link to clipboard

Copied

You probably did this, but I thought i would ask - are you flushing your cache?  I usually have to flush and close the browser for TOC updates to appear after pushing.  For topics, I can just hit refresh a few times for the changes to appear but not the TOC. 

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 24, 2022 Oct 24, 2022

Copy link to clipboard

Copied

It looks like all the topics that behave oddly have code similar to this in their source code:

steveb72082501_0-1666641288840.png

where the gTopicId entry indicates the section and topic the TOC jumps to when this entry is selected.

Any ideas what this code is, how it got there, and how I can prevent it from returning if I delete it?

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 25, 2022 Oct 25, 2022

Copy link to clipboard

Copied

Does this happen when you use the help on your C drive or only after you upload? If it's only after you upload,  that indicates a caching issue on the web server.

 

Typically javascript files are cached for a long time as they "don't change often" (tm). However, the table of contents in Robohelp is actually created from a bunch of javascript files, therefore you can get really odd results when the cached table of contents files are used to access your updated help. Can you ask your web server administrator to change the caching (max-age setting) on the whxdata folder to a much shorter time (you can set it to 0 (zero) to prevent these files being cached at all, which should solve the problem)?

 

 

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 25, 2022 Oct 25, 2022

Copy link to clipboard

Copied

It was happening locally too.  I ended up deleting that block of script from every topic that had it (not every topic had it and some seemed to have the correct value for gTopicId) and it seems to have fixed all the weirdness.  I have seen no adverse effects so far, so still wondering what that code is and from where it came.  And if deleting it will come back to bite me later.

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 25, 2022 Oct 25, 2022

Copy link to clipboard

Copied

Hmm, are you saying it was in the source files, not the output files? In that case you have somehow, at some point, managed to get output files in your project source.  I would delete that code from all source topics as it should only appear in output files and will be added by RH during the generation process as needed.

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 28, 2022 Oct 28, 2022

Copy link to clipboard

Copied

LATEST

I think that code looks familiar from Classic days and importing Word documents. Could that be the case here?

 

I am also pretty sure it could be deleted without issue, which is what you seem to have found.

________________________________________________________

My site www.grainge.org includes many free Authoring and RoboHelp resources that may be of help.

 

Help others by clicking Correct Answer or Like if helpful. Found your answer elsewhere? Share it here.

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
RoboHelp Documentation
Download Adobe RoboHelp