Skip to content

Commit e40fafe

Browse files
sapphi-redkiaking
authored andcommitted
docs: fix canonical links (#19084)
1 parent d33576c commit e40fafe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.vitepress/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ export default defineConfig({
449449
transformPageData(pageData) {
450450
const canonicalUrl = `${ogUrl}/${pageData.relativePath}`
451451
.replace(/\/index\.md$/, '/')
452-
.replace(/\.md$/, '/')
452+
.replace(/\.md$/, '')
453453
pageData.frontmatter.head ??= []
454454
pageData.frontmatter.head.unshift(
455455
['link', { rel: 'canonical', href: canonicalUrl }],

0 commit comments

Comments
 (0)