diff --git a/src/pages/notes/[id].astro b/src/pages/notes/[id].astro index a5bdf62..542abfd 100644 --- a/src/pages/notes/[id].astro +++ b/src/pages/notes/[id].astro @@ -13,7 +13,7 @@ interface Props { export async function getStaticPaths() { const notes = await getCollection('notes'); return notes.map((note: CollectionEntry<'notes'>) => ({ - params: { id: note.id }, + params: { id: note.id.replace(/-/, '/') }, props: { note }, })); }