Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Cannot create child page if parent page's uri contains "/" #1225
In the pages list, when you want to create a page as a child of an existing page that is already a child (depth: 2), you should see the Create new page form.
Steps to reproduce
Origin of the error
The routing system doesn't find what cp route is appropriate if the parent page's uri contains a slash. Indeed, PublishPageController->create() is not called.
In /statamic/core/Http/routes-cp.php, line 37
So I changed it to
That fixed it, needs further testing to confirm it doesn't break anything.