Silverstripe Version: 4.3.1
Hey, I have a PersonHolder.php with a template PersonHolder.ss which has PersonPage.php as allowed_children. The PersonHolder.ss loops through the persons and displays them. The PersonPage.php can’t be root, I don’t want it to be visited as separate url so I don’t have any need for a PersonPage.ss file and I didn’t create it under Layout. So there is no PersonPage.ss.
Now when I visit a PersonPage directly with a url (I can see in backend), I can still access the PersonPage seperate what only displays the Title of the page, because there is no template.
Is there a way to redirect to 404 when a page template doesn’t exists?