Skip to content

Unlisted doc page accessible from auto generated category index #8301

@Mysterious-Dev

Description

@Mysterious-Dev

Have you read the Contributing Guidelines on issues?

Description

Even if a page is marked unlisted with front matter, she can be accessible (build site) from auto generated category index.

In the demo, create-a-blog-post.md is marked with unlisted front matter.

Reproducible demo

https://stackblitz.com/edit/github-qvcv3j?terminal=build,serve

Steps to reproduce

  1. Mark page that is in subcategory with auto generated category index, with unlisted front matter
  2. Build website & test it
  3. Go to the auto generated category index
  4. View the result

Expected behavior

Page should not be accessible from auto generated category index.

Actual behavior

The page marked unlisted is accessible.

Your environment

  • Docusaurus version used: 0.0.0-5363
  • Environment name and version (e.g. Chrome 89, Node.js 16.4): Firefox 106 - NodeJS 18
  • Operating system and version (e.g. Ubuntu 20.04.2 LTS): Windows 11 22H2

Self-service

  • I'd be willing to fix this bug myself.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugAn error in the Docusaurus core causing instability or issues with its execution

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions