Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unlisted doc page accessible from auto generated category index #8301

Closed
1 of 2 tasks
Mysterious-Dev opened this issue Nov 8, 2022 · 1 comment · Fixed by #8319
Closed
1 of 2 tasks

Unlisted doc page accessible from auto generated category index #8301

Mysterious-Dev opened this issue Nov 8, 2022 · 1 comment · Fixed by #8319
Labels
bug An error in the Docusaurus core causing instability or issues with its execution

Comments

@Mysterious-Dev
Copy link
Contributor

Mysterious-Dev commented Nov 8, 2022

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.
@Mysterious-Dev Mysterious-Dev added bug An error in the Docusaurus core causing instability or issues with its execution status: needs triage This issue has not been triaged by maintainers labels Nov 8, 2022
@slorber slorber removed the status: needs triage This issue has not been triaged by maintainers label Nov 9, 2022
@slorber
Copy link
Collaborator

slorber commented Nov 9, 2022

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
Labels
bug An error in the Docusaurus core causing instability or issues with its execution
Projects
None yet
2 participants