From 1dacb1ef289c112f7754d2ccef313061cd681613 Mon Sep 17 00:00:00 2001 From: Savin Angel-Mario Date: Sat, 12 Aug 2023 16:51:06 +0300 Subject: [PATCH] HOTFIX: Fixed sitemap not working properly --- src/plugin.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugin.ts b/src/plugin.ts index 8c364c6..b88eb26 100644 --- a/src/plugin.ts +++ b/src/plugin.ts @@ -13,7 +13,7 @@ export const freshSEOPlugin = (manifest: Manifest, opts: PluginOptions = {}): Pl { path: "/sitemap.xml", handler: (req) => { - const sitemap = new SitemapContext(req.url, manifest); + const sitemap = new SitemapContext(req.url.replace("/sitemap.xml", ""), manifest); if (opts.include) { opts.include.forEach((route) => {