From e437e3fb5e1f82c44cafee06b4db8a4ae85815e1 Mon Sep 17 00:00:00 2001 From: Kevin F Date: Fri, 20 Sep 2024 13:50:07 +0200 Subject: [PATCH] fix sitemap path in robots.txt --- src/pages/robots.txt.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/robots.txt.ts b/src/pages/robots.txt.ts index bcc5259..196eea9 100644 --- a/src/pages/robots.txt.ts +++ b/src/pages/robots.txt.ts @@ -4,7 +4,7 @@ const getRobotsTxt = (sitemapURL: URL) => ` User-agent: * Allow: / -Sitemap: ${sitemapURL.href} +Sitemap: ${sitemapURL.href + sitemapURL.pathname} `; export const GET: APIRoute = ({ site }) => {