Skip to content
Grav 2.0 is officially stable. Read the announcement →
Archive

404s on Grav generated pages like '/sitemap'

Started by Muut Archive 10 years ago · 1 replies · 308 views
10 years ago

I have been using a plugin I built to alert me of 404 errors so I can fix them quickly. I have noticed that pages generated by Grav throw 404 errors internally even though the user gets the proper page.

This includes:

  • /sitemap
  • /random
  • /search

I'm just going to add a filter to my plugin, but I thought I should note this behavior for the team.

10 years ago

It's normal because they are not real pages, so Grav does not find them and issues the onPageNotFound event, is this what you are getting alerted of?

They hook into the Grav lifecycle to provide output for those routes.

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1369 9 years ago
Archive · by Muut Archive, 9 years ago
2 942 9 years ago
Archive · by Muut Archive, 9 years ago
2 4069 9 years ago
Archive · by Muut Archive, 9 years ago
1 2960 9 years ago
Archive · by Muut Archive, 9 years ago
3 1125 9 years ago