Skip to content

Commit fbf5e5d

Browse files
authored
fix($core): reference correct canonical Url frontmatter property (fix #2665)
1 parent e2b6641 commit fbf5e5d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/@vuepress/core/lib/node/ClientComputedMixin.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,10 @@ module.exports = siteData => {
6666
}
6767

6868
get $canonicalUrl () {
69-
const { canonical } = this.$page.frontmatter
69+
const { canonicalUrl } = this.$page.frontmatter
7070

71-
if (typeof canonical === 'string') {
72-
return canonical
71+
if (typeof canonicalUrl === 'string') {
72+
return canonicalUrl
7373
}
7474

7575
return false

0 commit comments

Comments
 (0)