help3xsl/online_transform.xsl | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit 6b269c38cfe0794bf22c6e57469c0cba39fbd244
Author: Olivier Hallot <[email protected]>
AuthorDate: Wed Jul 8 17:05:12 2026 -0300
Commit: Olivier Hallot <[email protected]>
CommitDate: Thu Jul 9 15:13:12 2026 +0200
Add rel="cannonical" to Help pages
Change-Id: Ia245b32a07937f8abec450e3e12db05ee07add14
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/207816
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <[email protected]>
diff --git a/help3xsl/online_transform.xsl b/help3xsl/online_transform.xsl
index 3a8096f990..ea66c3ec8d 100644
--- a/help3xsl/online_transform.xsl
+++ b/help3xsl/online_transform.xsl
@@ -97,6 +97,7 @@
<xsl:variable name="donate_img"
select="concat($img_url_prefix,'helpimg/donate.png')"/>
<!-- Strings for the help UI page -->
+<xsl:variable name="url_cannonical" select="'https://help.libreoffice.org/'"/>
<xsl:variable name="tmp_href_ui"><xsl:value-of
select="concat($urlpre,'text/shared/help/browserhelp.xhp')"/></xsl:variable>
<xsl:variable name="tmp_doc_ui" select="document($tmp_href_ui)"/>
<xsl:variable name="ui_contents"><xsl:apply-templates
select="$tmp_doc_ui//variable[@id='contents']"/></xsl:variable>
@@ -193,6 +194,7 @@
<xsl:if test="//topic[@indexer='exclude']">
<meta name="robots" content="noindex"/>
</xsl:if>
+ <link rel="cannonical"
href="{$url_cannonical}{$productversion}/{$lang}{$htmlpage}"/>
</head>
<body>
<header id="TopLeftHeader">