Skip to content

Commit 3ff3d7c

Browse files
committed
fix version filter
1 parent 0654eca commit 3ff3d7c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/[[...path]]/page.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,9 @@ export default async function Page({params}: {params: {path?: string[]}}) {
115115
.filter(({slug}) => {
116116
return (
117117
slug.includes(VERSION_INDICATOR) &&
118-
slug.includes(pageNode.path.split(VERSION_INDICATOR)[0])
118+
pageNode.path
119+
.split(VERSION_INDICATOR)[0]
120+
.includes(slug.split(VERSION_INDICATOR)[0])
119121
);
120122
})
121123
.map(({slug}) => {

0 commit comments

Comments
 (0)