Skip to content

Commit 71236ba

Browse files
authored
Merge pull request #24 from xstevenyung/hotfix
2 parents 15e9427 + 1dacb1e commit 71236ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/plugin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export const freshSEOPlugin = (manifest: Manifest, opts: PluginOptions = {}): Pl
1313
{
1414
path: "/sitemap.xml",
1515
handler: (req) => {
16-
const sitemap = new SitemapContext(req.url, manifest);
16+
const sitemap = new SitemapContext(req.url.replace("/sitemap.xml", ""), manifest);
1717

1818
if (opts.include) {
1919
opts.include.forEach((route) => {

0 commit comments

Comments
 (0)