Create the DocumentDrivenEmpty.vue and DocumentDrivenNotFound.vue components
Test it on the root folder, i.e: /this-returns-404, it works
Create a subfolder, i.e: /blog, with a [...slug].vue
Navigate to any invalid path within the /blog subfolder, does not return 404.
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.
Environment
Build Modules: -
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