diff --git a/packages/site/src/seo/sitemap.ts b/packages/site/src/seo/sitemap.ts index 7505b1ff..e2fd552c 100644 --- a/packages/site/src/seo/sitemap.ts +++ b/packages/site/src/seo/sitemap.ts @@ -148,7 +148,10 @@ export function getSiteSlugs( const projectSlug = project.slug ? `/${project.slug}` : ''; const pages = project.pages .filter((page): page is ManifestProjectItem => 'slug' in page) - .map((page) => `${baseurl}${projectSlug}/${page.slug}`); + .map( + (page) => + `${baseurl}${projectSlug}/${page.slug?.replace(/\.index$/, '').replace(/\./g, '/')}`, + ); if (opts?.excludeIndex) return [...pages]; return [ opts?.explicitIndex