Skip to content

Commit e534248

Browse files
authored
fix: wrong redirect (#74)
1 parent 284be3f commit e534248

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/scripts/generate-redirect.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,10 @@ await (async function generateSitemap() {
2525
await Promise.all(
2626
pagesWithRootPage.map(
2727
async (page) =>
28-
await createRedirectPage(page, `/${DEFAULT_LOCALE}/${page}`)
28+
await createRedirectPage(
29+
page,
30+
page ? `/${DEFAULT_LOCALE}/${page}` : `/${DEFAULT_LOCALE}`
31+
)
2932
)
3033
);
3134
})();

0 commit comments

Comments
 (0)