From 5778ee307450e77e1f86871161956d21f84926a6 Mon Sep 17 00:00:00 2001 From: Dan Allen Date: Thu, 23 Dec 2021 17:54:05 -0700 Subject: [PATCH] clarify that canonical URL is only set if site.url is an absolute URL --- docs/modules/ROOT/pages/templates.adoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.11.0