Finding pages by path with mixed statuses

I’m trying to resolve a panel path to a page in PHP using Find::page(). E. g. Find::page('/page+subpage+subsubpage'). Everything works fine if all pages in the path are in the same status group: published or draft. But the method fails when statuses are mixed, e. g. page and subpage are listed but subsubpage is draft. Find::page() is only replacing + by / and then calling $kirby->page(), so my guess is that the problem caused by that method either searching published pages or drafts: kirby/src/Cms/App.php at 5.3.2 · getkirby/kirby · GitHub .

How do I correctly resolve a path to a page in Kirby with mixed statuses?

Okay, I’ve been debugging this for a while and now after posting this I found out that there should be no slash at the beginning of the path. Seems to be working now :man_facepalming: