diff --git a/src/impl/sitemap/adapters/redirect-entry-adapter.ts b/src/impl/sitemap/adapters/redirect-entry-adapter.ts index 7555159..1ae0f2a 100644 --- a/src/impl/sitemap/adapters/redirect-entry-adapter.ts +++ b/src/impl/sitemap/adapters/redirect-entry-adapter.ts @@ -39,7 +39,7 @@ export const redirectEntryAdapter = ( return pageSysId && path && (type === "redirect" || type === "alias") ? { page: { sys: { id: pageSysId } }, - path: parent.path + path, + path: parent.path + (path.startsWith("/") ? path : `/${path}`), title: title || undefined, metadata: entry.metadata, type,