question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Gatsby sitemap includes error (404) pages

See original GitHub issue

Sitemap generated by sitemap plugin contains 404 pages.

<url> <loc>https://domain/404/</loc> <changefreq>daily</changefreq> <priority>0.7</priority> </url>
<url> <loc>https://domain/404.html</loc> <changefreq>daily</changefreq> <priority>0.7</priority> </url>

It contains custom page and also default location of 404 page.

Expected behavior:

Sitemap shouldn’t contain error pages.

Details:

"gatsby-plugin-sitemap": "1.2.5",
"gatsby": "1.9.108"

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
KyleAMathewscommented, Dec 16, 2017

👊 thanks!

0reactions
juroshcommented, Dec 16, 2017

As of gatsby-plugin-sitemap@1.2.9 there are no 404 pages, closing 😎

Read more comments on GitHub >

github_iconTop Results From Across the Web

Gatsby's plugin generated sitemap.xml returning 404 error
I'm using gatsby-plugin-sitemap to generate sitemap.xml for a Gatsby site, but, for some reason that I can't find, it's returning 404 error ......
Read more >
gatsby-plugin-sitemap
The following pages are always excluded: /dev-404-page , /404 & /offline-plugin-app-shell-fallback , this cannot be changed even by customizing the filterPages ...
Read more >
How to generate sitemap.xml on a Gatsby site? - YouTube
This video describes how to generate sitemap.xml on a Gatsby site and adjust the parameters of the used plugin. It also shows how...
Read more >
My sitemap is giving a 404 error, what should I do? - Yoast
First of all, we'd like to inform you that this is usually not due to our plugin, but due to poorly coded themes...
Read more >
Sitemap from `gatsby-plugin-advanced-sitemap` excludes `/`
The resulting sitemap-pages.xml does include the / route, but it removes all of the other routes aside from /pricing , which is the ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found