Skip to content

Commit

Permalink
Add '/' to redirect paths if missing
Browse files Browse the repository at this point in the history
  • Loading branch information
Dacjan committed Nov 13, 2024
1 parent 15c7e37 commit 610202e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/impl/sitemap/adapters/redirect-entry-adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 610202e

Please sign in to comment.