From fbf5e5d99b40e3842a0a2566f9eb35e05863eab5 Mon Sep 17 00:00:00 2001 From: Adam DeHaven Date: Thu, 15 Oct 2020 12:32:40 -0400 Subject: [PATCH] fix($core): reference correct canonical Url frontmatter property (fix #2665) --- packages/@vuepress/core/lib/node/ClientComputedMixin.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/@vuepress/core/lib/node/ClientComputedMixin.js b/packages/@vuepress/core/lib/node/ClientComputedMixin.js index 2ea38bbddc..20558f5b7e 100644 --- a/packages/@vuepress/core/lib/node/ClientComputedMixin.js +++ b/packages/@vuepress/core/lib/node/ClientComputedMixin.js @@ -66,10 +66,10 @@ module.exports = siteData => { } get $canonicalUrl () { - const { canonical } = this.$page.frontmatter + const { canonicalUrl } = this.$page.frontmatter - if (typeof canonical === 'string') { - return canonical + if (typeof canonicalUrl === 'string') { + return canonicalUrl } return false