From: Dan Allen Date: Fri, 24 Dec 2021 00:54:05 +0000 (-0700) Subject: clarify that canonical URL is only set if site.url is an absolute URL X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=5778ee307450e77e1f86871161956d21f84926a6;p=working%2Feg-antora.git clarify that canonical URL is only set if site.url is an absolute URL --- diff --git a/docs/modules/ROOT/pages/templates.adoc b/docs/modules/ROOT/pages/templates.adoc index bba83f6..5efa4fe 100644 --- a/docs/modules/ROOT/pages/templates.adoc +++ b/docs/modules/ROOT/pages/templates.adoc @@ -133,8 +133,8 @@ It's often used as the base URL to generate relative URLs from this page. | page.canonicalUrl | The canonical URL for the current page. -The canonicalUrl is only set if site.url is set. -If there are multiple versions of the component, the canonical URL is the qualified URL of the most recent version of the page (excluding any prerelease versions). +The canonicalUrl is only set if site.url is set to an absolute URL and the page's component has at least one non-prerelease version. +If there are multiple versions of the component, the canonical URL is the qualified URL of the most recent, non-prerelease version of the page. If there's only a single version of the component, the canonical URL is the qualified URL of the current page. | page.editUrl