payload icon indicating copy to clipboard operation
payload copied to clipboard

500 Error for Non-Existent Documentation Routes on Payload Website

Open marcmaceira opened this issue 2 months ago • 0 comments

Hi team,

I noticed an inconsistency in how non-existent routes are handled on the Payload documentation website. Here are the details:


Steps to Reproduce:

  1. Open https://payloadcms.com/docs/getting-started/nested-route.
  2. Observe the 500 Internal Server Error.

Expected Behavior:
Non-existent documentation routes should return a 404 Not Found status and render a proper 404 page instead of a 500 error.


Environment:

  • Browser: Chrome Version 131.0.6778.86
  • OS: Windows 11

Additional Context:
I’m happy to help investigate or fix this issue if it’s helpful! Let me know if this is already being addressed or if I could open a PR.

marcmaceira avatar Nov 30 '24 02:11 marcmaceira