nuxt / content

The file-based CMS for your Nuxt application, powered by Markdown and Vue components.
https://content.nuxt.com
MIT License
3k stars 605 forks source link

404 error not triggering when using DocumentDriven and subfolders with [...slug].vue #2625

Open raf202 opened 2 months ago

raf202 commented 2 months ago

Environment


Reproduction

Describe the bug

Handling 404 errors using the DocumentDriven flag is currently only working at root level documents. Any documents in subfolders with a [...slug].vue file are not working at all, it just returns the slug page. Even when handled properly on the slug page with v-if and manually renderind the NotFound component, the response is returned 200 and not 404.

Additional context

No response

Logs

No response