Copy link to clipboard
Copied
Version: RoboHelp 2019
Output: Responsive HTML5
Hello - I'm looking for some guidance on how to add a canonical link/url tag into robohelp topics. We publish our help to several production platforms and Google search finds all the duplicate help files. In an effort to optimize search results, we want to insert a canonical url tag into the header section of each help topic to tell google that there may be multiple copies of the same file, and then add the full url/path to one platform as the primary version.
Does anyone have experience with this that you can share? Is there a way to define the platform base URL in one place and then use it in all topics automatically?
Copy link to clipboard
Copied
I don't have any experience with canonical URLs, but if I want to include a javascript in all topics I add it in the master page header section (don't confuse this with the html head section). That would be the first place I'd investigate.
Copy link to clipboard
Copied
Or. There's "Generate XML Sitemap" in the output settings, which perhaps is what you need? It mentions a Base URL, at any rate. (I was looking for something else and stumbled across it.)
Copy link to clipboard
Copied
Thank you, Amebr, for the replies. We do generate sitemaps with the Base URL but not sure that's unrelated to the canonical tag.
Copy link to clipboard
Copied
that should read "not sure that's related to the canonical tag"
Copy link to clipboard
Copied
Yeah not sure myself, but I came across it shortly after reading this post, so thought I'd mention it in case it helped. 🙂