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

$site->findPageOrDraft() does not work for nested drafts #6339

Open
tobimori opened this issue Mar 8, 2024 · 0 comments · May be fixed by #6354
Open

$site->findPageOrDraft() does not work for nested drafts #6339

tobimori opened this issue Mar 8, 2024 · 0 comments · May be fixed by #6354
Assignees
Labels
type: bug 🐛 Is a bug; fixes a bug
Milestone

Comments

@tobimori
Copy link
Contributor

tobimori commented Mar 8, 2024

Description

  • page-1 -> listed

    • page-2 > draft
      • page-3 > draft
        -> will fail
  • page-1 -> draft

    • page-2 > listed
      • page-3 > listed
        -> will work
  • page-1 -> listed

    • page-2 > draft
      • page-3 > listed
        -> will fail

Using $site->findPageOrDraft("page-1/page-2/page-3")

Expected behavior
I expect the method to recursively find draft pages as well.

Your setup

Kirby Version 4.1.2

tobimori added a commit to tobimori/kirby-seo that referenced this issue Mar 16, 2024
Signed-off-by: Tobias Möritz <tobias@moeritz.io>
@distantnative distantnative self-assigned this Mar 23, 2024
@distantnative distantnative added this to the 4.2.0 milestone Mar 23, 2024
@distantnative distantnative added the type: bug 🐛 Is a bug; fixes a bug label Mar 23, 2024
@distantnative distantnative linked a pull request Mar 23, 2024 that will close this issue
5 tasks
@distantnative distantnative linked a pull request Mar 23, 2024 that will close this issue
5 tasks
@bastianallgeier bastianallgeier modified the milestones: 4.2.0, 4.2.x Mar 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug 🐛 Is a bug; fixes a bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants