Skip to content

Commit

Permalink
Replace all slug dots with slashes, not just first
Browse files Browse the repository at this point in the history
  • Loading branch information
fwkoch committed Oct 24, 2024
1 parent 8714cd4 commit f52e345
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/common/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`,
Expand Down

0 comments on commit f52e345

Please sign in to comment.