Skip to content

<ContentList> lists everything beginning with the path rather than listing everything inside the path. #1190

@dankcatlord

Description

@dankcatlord

Environment

Nuxt CLI v3.0.0-rc.3
RootDir: /home/projects/nuxt-starter-nt7hpr
Nuxt project info:

------------------------------
- Operating System: `Linux`
- Node Version:     `v16.14.2`
- Nuxt Version:     `3.0.0-rc.3`
- Package Manager:  `[email protected]`
- Builder:          `vite`
- User Config:      `modules`
- Runtime Modules:  `@nuxt/[email protected]`
- Build Modules:    `-`
------------------------------

Reproduction

https://stackblitz.com/edit/nuxt-starter-nt7hpr

Describe the bug

When <ContentList> is used, it finds everything beginning the string inside path property sans any trailing slash. If you specify your path as /abcd or /abcd/, it will find everything inside the /abcd directory but also it will find something like /abcdefgh.md or /abcde/fgh.md but not something like /1234.md.

Additional context

No response

Logs

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions