Skip to content

index.md doesn't get loaded when using <ContentDoc> with dynamic routing. #1189

@dankcatlord

Description

@dankcatlord

Environment

Nuxt CLI v3.0.0-rc.3
RootDir: /home/projects/nuxt-starter-jx8vzt
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

I reproduced the issue in stackblitz.
https://stackblitz.com/edit/nuxt-starter-jx8vzt

Describe the bug

When using dynamic routing, rather than loading the index.md file inside the directory pointed to by $route.path, the page loaded is the first one found alphabetically inside the directory pointed to by $route.path.

Additional context

As far as I know, this bug isn't in 2.0.0.

Logs

No response

Metadata

Metadata

Assignees

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