![]() ![]() I noticed any tag would be present in the output. My next attempt was to see which tag would stick. ![]() Unfortunately the base tag got stripped from the output and I was back to square one. I thought I had a winner, because it wasn't stripped, but the page needed a tag with the full path to be fully valid. This canonical did come back in the output. Just out of curiosity I tried adding only the variable to the individual topic and/or master page to see what would happen (so there was no manual input in the href part): This output also got stripped in the output of the knowledge base. I just had to try and see if it would work. Although MadCap Flare supports system variables, there was only one variable for the SourceFile (filename.htm) itself, not for the full path. So I tried setting it it dynamically to be future proof and to avoid manual input and hoping this dynamical version wouldn't be stripped. Good idea! I tried to set the link manually, but it was stripped from the output. Unfortunately, not all crawlers are able to execute Javascript after getting the initial contents. ![]() If you still don't understand what this tag exactly does, please have a look at this article about canonicalization and how to use it to get rid of duplicate pages.Ī quick search on the MadCap Flare forum resulted in finding a client suggesting a Javascript solution that would add the canonical to the of the knowledge base. In this way Google or other crawlers knows the page with the ?Highlight= parameter has the same content as the one without it. A canonical link looks like this and can be placed in the section of your page (with the URL being the current page url without parameters): The normal way to solve duplicate page errors and also SEO best practice is to add a canonical link to every page. How do you normally solve duplicate content errors? So in the end it can be seen as duplicate content by crawlers. Even though the content of the page (except for the highlighted words), the title, and the description are still the same. Unfortunately the ? parameter after the URL can potentially change the page content. The ?Highlight= parameter highlights the words found on the page. After user would run a search in the knowledge base, all the results got an added ?Highlight=search addition. I took a closer look at the URL's and noticed a pattern. The solution required access to the published output location and a little scripting. I needed to fix this, and I did, but it wasn't as smooth and easy as it should have been. Now, this is a fairly normal error if a script is missing some html tags and uses parameters. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |