From f52e3451c3f9328163f6123bb713a7a5f12af701 Mon Sep 17 00:00:00 2001 From: Franklin Koch Date: Wed, 23 Oct 2024 23:56:09 -0600 Subject: [PATCH] Replace all slug dots with slashes, not just first --- packages/common/src/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/common/src/utils.ts b/packages/common/src/utils.ts index 60427a19..9b9d59f3 100644 --- a/packages/common/src/utils.ts +++ b/packages/common/src/utils.ts @@ -40,7 +40,7 @@ export function getProjectHeadings( }, ...project.pages.map((p) => { if (!('slug' in p)) return p; - const slug = p.slug?.replace('.', '/'); + const slug = p.slug?.replaceAll('.', '/'); return { ...p, path: projectSlug && project.slug ? `/${project.slug}/${slug}` : `/${slug}`,