Skip to content

Unlisted doc page accessible from auto generated category index #8301

Closed

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.

Activity

  1. added
    bugAn error in the Docusaurus core causing instability or issues with its execution
    status: needs triageThis issue has not been triaged by maintainers
    on Nov 8, 2022
  2. slorber commented on Nov 9, 2022

    @slorber
    Collaborator

    Thanks for reporting, indeed it's likely an edge case I forgot in #8004 😅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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