diff --git a/packages/sitecore-jss/src/site/graphql-sitemap-service.ts b/packages/sitecore-jss/src/site/graphql-sitemap-service.ts index 4309c381e1..bcea7f585a 100644 --- a/packages/sitecore-jss/src/site/graphql-sitemap-service.ts +++ b/packages/sitecore-jss/src/site/graphql-sitemap-service.ts @@ -83,6 +83,8 @@ export class GraphQLSitemapXmlService { async getSitemap(id: string): Promise { const searchSitemap = `${PREFIX_NAME_SITEMAP}${id}.xml`; const sitemaps = await this.fetchSitemaps(); + // added this item - there is default sitemap when will be available everytime + sitemaps.push('sitemap.xml'); return sitemaps.find((sitemap: string) => sitemap.includes(searchSitemap)); }