Closed damieng closed 4 weeks ago
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 30 days.
This issue was closed because it has been stalled for 30 days with no activity.
Environment
Reproduced under WSL and native Windows.
Reproduction
Create a new content app with
npx nuxi@latest init content-app -t content
, then add a index.vue in the pages root with this content:Then finally create the following in the content folder (they can be just empty files):
Now running the page you'd expect to see just 1 item, "/articles/welcome-to-the-blog` based on the documentation for queryContent given that https://content.nuxt.com/composables/query-content says:
But in fact you get two results:
Describe the bug
queryContent arguments are matching against start of the path and not actually by directory name - in contradiction to the docs.
The fix will either be:
queryContent('articles/')
(trailing slash)Additional context
No response
Logs
No response