fix: encodeURIComponent slug

This commit is contained in:
DIYgod
2023-03-24 01:24:12 +00:00
parent f09676e2d7
commit 33a3f23064
+1 -1
View File
@@ -41,7 +41,7 @@ export default async function handler(
)?.value ||
getDefaultSlug(note?.metadata?.content?.title, `${characterId}-${noteId}`)
link += `/${slug}`
link += `/${encodeURIComponent(slug)}`
}
res.redirect(link)