Hello,
I have an HTML output (let us call it ReadMe). This file has a single page with a short table of contents (ToC) created via anchors and is not included in a large project.
When opening it locally, all links in ReadMe are valid.
But after renaming the file, I may occur the error when clicking the link in the ToC, as the anchor includes the filename (<a href="file.html#anchor">link text</a>).
To avoid this situation, the links inside a page should be like <a href="#anchor">link text</a>.
Could you please explain the reason why Help+Manual includes the filename in links to anchors on the same page? Are you planning to change this behavior, or maybe suggest a workaround to me?
Invalid links for anchors in HTML-file
Moderators: Alexander Halser, Tim Green
- Tim Green
- Site Admin
- Posts: 23181
- Joined: Mon Jun 24, 2002 9:11 am
- Location: Bruehl, Germany
- Contact:
Re: Invalid links for anchors in HTML-file
Hi Maria,
This is correct and intended. It doesn't need to be changed.Maria Kazakova wrote: ↑Mon Sep 06, 2021 10:59 am Could you please explain the reason why Help+Manual includes the filename in links to anchors on the same page? Are you planning to change this behavior, or maybe suggest a workaround to me?
Please never rename anything in WebHelp after generating it. That will always cause errors, because everything is tightly integrated and all links are set correctly automatically. If you want to have it with a different name you must republish from Help+Manual with the name that you want, then the links will also be correct.But after renaming the file, I may occur the error when clicking the link in the ToC
Regards,
Tim (EC Software Documentation & User Support)
Private support:
Please do not email or PM me with private support requests -- post to the forum directly.
Tim (EC Software Documentation & User Support)
Private support:
Please do not email or PM me with private support requests -- post to the forum directly.