Skip to content

Commit 69918b6

Browse files
committed
fix canonical path generation
1 parent 79f082e commit 69918b6

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

Diff for: .changeset/honest-hounds-wink.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'tiptap-docs': patch
3+
---
4+
5+
Fixed an issue with missing slashes in the canonical path

Diff for: src/server/createCanonicalPath.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { FULL_DOMAIN } from '@/utils/constants'
22

33
export const createCanonicalPath = (path: string[]) => {
4-
const canonicalPath = `${FULL_DOMAIN}${path.join('/')}`
4+
const canonicalPath = `${FULL_DOMAIN}/${path.join('/')}`
55
return canonicalPath
66
}

0 commit comments

Comments
 (0)