Please add one more system variable

This forum is for all Flare issues related to the HTML5, WebHelp, WebHelp Plus, and Adobe Air Targets
Post Reply
lennie
Jr. Propeller Head
Posts: 4
Joined: Sat Jul 15, 2017 3:03 am

Please add one more system variable

Post by lennie »

Goal: I am trying to add a canonical tag in the <head> section.
The canonical tag looks like this: <link rel="canonical" href="https://www.ourdomain.com/folder/currentpage.htm" /> but it gets stripped in the build.

So far i've tried:

-- Adding it with Javascript => does not get parsed by search engines, it needs to be in the <head>.
-- Adding the canonical tag to the individual pages => which did not show up in the build.
--Try to add the canonical tag to the master page. But there are too few system variables to make it work.
For example <link rel="canonical" href="[%=System.SourceFile%]" /> shows only the current document, but there is no variable for the current path.

Possible solutions:
1) Add a system variable for the path to the sourcefile (this should be the relative path) so I can build it like this:
<link rel="canonical" href=https://www.ourdomain.com[%=System.SourcePath%][%=System.SourceFile%]" />
2) Don't strip the canonical tag from the individual pages.

If anyone could let me know if this is can be on the roadmap for a next update or maybe have another solution it would make my day
Nita Beck
Senior Propellus Maximus
Posts: 3669
Joined: Thu Feb 02, 2006 9:57 am
Location: Pittsford, NY

Re: Please add one more system variable

Post by Nita Beck »

lennie wrote:If anyone could let me know if this is can be on the roadmap for a next update or maybe have another solution it would make my day
These are peer-to-peer forums so no one here will be able to answer the question about upcoming updates. Generally speaking, MadCap does not publicize when it's going to release an update or what will be in an update. We users find out when an update in announced...

To make a request for a feature enhancement, be sure to use MadCap's official submission form: https://www.madcapsoftware.com/feedback ... quest.aspx

Otherwise, I hope other forum members might offer a workaround or other solution to achieve your goal.
Nita
Image
RETIRED, but still fond of all the Flare friends I've made. See you around now and then!
lennie
Jr. Propeller Head
Posts: 4
Joined: Sat Jul 15, 2017 3:03 am

Re: Please add one more system variable

Post by lennie »

Hi Nita,

Thank you for the feedback, must have read over this. I fortunately already made a workaround for my problem.
I just posted it in this forum thread viewtopic.php?f=9&t=28280&p=124348&hilit=canonical
Post Reply