From 2cf41ff144f5145066e3ec8f0aaa5b6016247b7b Mon Sep 17 00:00:00 2001 From: Alexey Lyakhov Date: Sun, 6 Oct 2024 11:29:00 +0700 Subject: [PATCH] fix double slash --- src/sitemap/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sitemap/utils.ts b/src/sitemap/utils.ts index c67d259..26f0bfa 100644 --- a/src/sitemap/utils.ts +++ b/src/sitemap/utils.ts @@ -77,7 +77,7 @@ async function getSitemapXml( const parentPath = parent.path ? removeTrailingSlash(parent.path) : ""; - path = `${parentPath}/${path}`; + path = `${parentPath}${path}`; parentId = parent.parentId; parent = parentId ? routes[parentId] : null; }