Skip to content

Commit

Permalink
HOTFIX: Fixed sitemap not working properly
Browse files Browse the repository at this point in the history
  • Loading branch information
notangelmario committed Aug 12, 2023
1 parent 15e9427 commit 1dacb1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit 1dacb1e

Please sign in to comment.