commit 1fdbe2f88da0b9a8305773285bcf024508f0c62b
parent 6970606fc12a9bfaa53bb8cd14154500a0408616
Author: Yongbin Kim <iam@yongbin.kim>
Date: Mon, 30 Jan 2023 15:23:35 +0900
fix: 서브페이지 경로를 제대로 처리하지 못하던 문제 수정
Signed-off-by: Yongbin Kim <iam@yongbin.kim>
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/utils/wiki.ts b/lib/utils/wiki.ts
@@ -9,7 +9,7 @@ export const getSlugAndPath = (
const { slug, path } = context.query
return [
typeof slug === 'string' ? slug : null,
- path != null && Array.isArray(path) ? path.join('') : null
+ path != null && Array.isArray(path) ? path.join('/') : null
]
}